apocalypse2012
01-24-2008, 07: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
(
foo = sphere()
for i = 1 to 5 do
(
foo.material = standard()
)
print (scenematerials.count)
)
Result: 6
