About this site
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.
Comments
.
Try this.
The loaded material library must be set as current material library. Otherwise the script will not find the materials from the library.
Use the Refresh button when new objects are added to the scene or when the current material library is changed while the script is still running.
Tools and Scripts for Autodesk 3dsMax
....
Now works fine, I just add this string:
tempMatLib = loadMaterialLibrary"my material path"
.
The reason for the error is that your current material library is empty. Using the loadMaterialLibrary makes the "my material path" library the current material library and the script works.
Tools and Scripts for Autodesk 3dsMax
Thanks you for this script
Thanks you for this script but could you explain clearly why i got this message?
plz see attachment
http://s11.postimg.org/iqwc0jqar/image.jpg
...
------------------------------
.
If the name of the object is "yellow", which material with what name from the matLib have to be assigned to the object?
Or you want a script with an UI where you can put:
- name of the object
- name of the material to be assigned
Then the script will get the material by the name that you have entered and will assign it to all objects with givven name.
Tools and Scripts for Autodesk 3dsMax
...
i need UI like this:
try (destroyDialog ::rol_TEST) catch()
rollout rol_TEST "TEST"
(
dropdownList ddl1 " COLOR 1" pos:[16,17] width:114 height:40 items:#("RED", "GREEN", "BLUE")
dropdownList ddl7 " COLOR 2" pos:[176,17] width:114 height:40 items:#("RED", "GREEN", "BLUE")
dropdownList ddl8 " COLOR 3" pos:[336,16] width:114 height:40 items:#("RED", "GREEN", "BLUE")
dropdownList ddl9 " OBJECT1" pos:[16,80] width:114 height:40 items:#("OBJECT1", "OBJECT2", "OBJECT3")
dropdownList ddl10 " OBJECT2" pos:[176,80] width:114 height:40 items:#("OBJECT1", "OBJECT2", "OBJECT3")
dropdownList ddl11 " OBJECT3" pos:[336,80] width:114 height:40 items:#("OBJECT1", "OBJECT2", "OBJECT3")
GroupBox grp1 "" pos:[168,8] width:126 height:120
GroupBox grp4 "" pos:[8,8] width:127 height:120
GroupBox grp5 "" pos:[328,8] width:127 height:120
button btn16 "OK" pos:[144,141] width:176 height:25
)
createDialog rol_TEST height:180 width:460 pos:[1080,130]
BUT THE COLORS WILL BE TAKE FROM MAT LIBRARY AND THE NAMES OF GEOMETRY FROM THE SCENE
.
The Material Library will be already loaded, or the script have to load it from .mat file?
Tools and Scripts for Autodesk 3dsMax
Yes, the Material Library will be already loaded
Yes, the Material Library will be already loaded, just need to find the object(geometry) by name and after put material.
.
What is the name of the material library?
Tools and Scripts for Autodesk 3dsMax