Apply unique material to instances even if propagate material to instance in turned on


#1

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


#2

https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_EB69A035_7FF4_4A0A_8A82_409C4145B9DF_htm

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 ])

#3

Thank you, this is helpful to me