[Closed] How to make sub-materials unique?
Multisub material with 10 sub-materials.
Submat[1], submat[3], submat[6] are instances.
How the make submat[3] unique material?
Maxscript help file says this:
assignNewName <material>
Modifies the name of the specified material to make it unique. The name is of the form “Material #1” where the number is incremented as required to make ensure its unique.
But it not works. It renames all instanced submaterials. Maybe it not works for sub-materials, but works for other type of materias?
I just tried and it works, for what I understand it only assign a unique name.
It doesn’t break the instance link for this material.
It makes all names(of the instances) the same on my max2014.
I need to make submat unique. Then the name can be changed.
Edit: Found how to do it:
-- the first slot is multisub mterial. All submat-s are instances of submat[1]
msm = meditmaterials[1]
-- get the second submat
-- create a copy
tmp = copy msm[2]
-- assign the copy back
msm[2] = tmp