XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Replaced materials remain in scenematerials library...

01-24-2008, 08:47 PM
If you replace a materials on a node in maxscript, the old material continues to hold a reference to materialLibrary(). As a result, the material does not go away and continues to be reported and being in the scenematerials library even if it is not applied to and other nodes.

foo = sphere()
for i = 1 to 5 do
foo.material = standard()
print (scenematerials.count)

Result: 6

01-24-2008, 08:54 PM
Search is your best friend, use it and use it often. Searching the forums for "scenematerials" returns the thread with this post (http://forums.cgsociety.org/showpost.php?p=4774578&postcount=2).


CGTalk Moderation
01-24-2008, 08:54 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.