If object name = something assign material
Hi all,
i'm looking for a way to look through all the scene objects and if an object name equals a specific name (ex. box01) then assign a material from a temporary matlib. I was able to create the temp matlib using the following code but can't make the selection part to work:
tempLib1 = loadTempMaterialLibrary "//Mylib/BOX01.mat"
matBOX01 = tempLib1[58]
$.material = matBOX01
meditmaterials[1] = matBOX01
thanks for your help
Comments
Assign certain material to certain object ?
Above script is very useful, but how do i assign specific material to specific objects ?
For example,
material BRICK to Ex_wall
Material SHINGLE to Ex_Roof
....
thanks in advance.
.
Where are the materials located?
Tools and Scripts for Autodesk 3dsMax
...
If your material library is located in default "matlib" folder then you can use
bga
...
bga
Thanks that helped alot!
Thanks that helped alot!