ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Submitted by itay tzafrir on Sun, 2019-10-27 08:23
Hello
I want to assign a Multi/sub Object material to an object by script
I have a Multi/sub Object material named ‘Industrial’ and I want to put it on the object ‘Buildings’
Lat's say you have an object in the scene "Building" which have multiple Face ID's for
every building element (window, door, etc.) and you create Multymaterial in Material Editor called "Building_Material" in sample slot 3.
-- you can place object and material in some variables
obj = $Building
mtl = meditMaterials["Building_Material"]-- or meditMaterials[3]
obj.material = mtl -- or obj.mat = mtl
Comments
...
Try to read MaxScript Help document.
https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_7ECB1E...
Lat's say you have an object in the scene "Building" which have multiple Face ID's for
every building element (window, door, etc.) and you create Multymaterial in Material Editor called "Building_Material" in sample slot 3.
bga