Version: 
Back to list

Scene :: replaceMaterial

Synopsis

   Replace a material by another everywhere it is used

GUI Dialog

   

Script function

   scene.replaceMaterial(originalMaterial, newMaterial)

Parameters

   originalMaterial (Material) : The material to replace everywhere
   newMaterial (Material) : The new material to set in place of originalMaterial