Is there a way to apply separate material to instance nodes using maxscript, when propagate material option is turned on in material editor, or can this option be turned off using script.
Thanks
Apply unique material to instances even if propagate material to instance in turned on
sharfym
#1
Serejah
#2
InstanceMgr.autoMtlPropagation = false
delete objects
gc()
t = Teapot()
r = Standardmaterial diffuse:red
g = Standardmaterial diffuse:green
b = Standardmaterial diffuse:blue
t.material = r
t = instance t material:g pos:(t.pos + [ 50,0,0 ])
-- uncomment to see the difference
-- InstanceMgr.autoMtlPropagation = true
-- t = instance t material:b pos:(t.pos + [ 100,0,0 ])
-- t = instance t material:r pos:(t.pos + [ 50,0,0 ])