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