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

01 January 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 January 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 (


CGTalk Moderation
01 January 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.