Version: 
Back to list

Scene :: replaceMaterial

Synopsis

   Replace a material by another everywhere it is used

GUI Dialog

   

Script function

   scene.replaceMaterial(originalMaterial, newMaterial[, occurrences])

Parameters

   originalMaterial (Material) : The material to replace everywhere
   newMaterial (Material) : The new material to set in place of originalMaterial
   occurrences (OccurrenceList[optional] : The occurrences on which replacing the materials