(Help needed) SelectionMtls to MultiSubMat - ID count error
as I was looking for a material to MultiSubMat collector script I found this one below. It works like I hoped and puts the materials of the selected objs in the subslots but only with obj counts below 11.
After the 11 material the multisub.matrialIDList doesn't count further above 12 and I get the dublicated material ID error.
Was trying some IDList commands but my script knowledge is pretty basic. So i hope for help. I think its an command bug with the mmtl itself and its standard 10 material slots.
( if selection.count != 0 do ( mmtl = multimaterial name:"SelectionMtls" mmtl.materialList = for i = 1 to selection.count where selection[i].material != undefined collect ( addModifier selection[i] (Materialmodifier materialID:i) selection[i].material ) --add new material to material editor (first slot) selection.material = meditMaterials= mmtl ) )