Hi,
I’m trying to simply reset all material editor slots, and can’t manage to set the material name.
The function :
def resetMedit():
medit = MaxPlus.MaterialEditor
for i in xrange(24):
mtlName = "%s - Defaultxxx" %str(i).zfill(2)
m = MaxPlus.Factory.CreateDefaultStdMat()
m.Name = mtlName
print "[%s] %s" % (m.GetClassName(), m.GetName())
medit.SetSlot(i, m)
#
it just set an unamed material … Have tried also SetName but error.
Any idea ?