Version:
2021.1
2020.2
2020.1
2019.2
2019.1
2018.3
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