Notifications
Clear all
[Closed] currentMaterialLib & rdgMatLibBuilder ?
Aug 09, 2006 10:24 am
I am trying to build a MatLibBuilder.
If something like this already exists please give me a pointer.
Problem?
(
currentLib = currentMaterialLibrary
)
This returns: #materialLibrary()
I want to duplicate the current library, load this new library and reset it, append all materials in scene and save it. And, if possible reload the original library.
Georg
1 Reply
Aug 09, 2006 10:24 am
The material library globals act like arrays, so you could say something like:
srcLib = sceneMaterials
destLib = currentMaterialLibrary
for i=1 to srcLib.count do
(
append destLib srcLib[i]
)
which would append all the materials in your scene to your current material library. use
loadMaterialLibrary <path>
to switch current libraries.
The “MaterialLibrary Values” topic in the maxscript help is also a good source for the other applicable functions.