How to clear scenematerials buffer~


hello guys!~

How to clear scenematerials buffer~ sometime there have a lot of materials unused by objects… so how to clear it ??


I think it’s read only so nope. you could collect all the scene objects materials into your own scene material library or array quite easily.


Here is Bobo’s solution and it works for me:

save the file (saveMaxFile()) or save nodes (saveNodes())


To expand on this, the scenematerials library gets updated internally on file operations (because it is slow). To avoid the long wait when saving a large scene, using
saveNodes #() someTempFile
should be the fastest solution - it saves an empty file without any objects, but still triggers the update of the scene materials of the current scene…


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.