Version: 
Back to list

Scene :: replaceMaterialsOnSelection

Synopsis

   Replace a material by another anywhere it is used in a selection

GUI Dialog

   

Script function

   scene.replaceMaterialsOnSelection(selection, oldMaterial, newMaterial)

Parameters

   selection (ScenePathList) : The selection scenePaths list
   oldMaterial (Material) : The material to replace
   newMaterial (Material) : The new material to set