PDA

View Full Version : How to clear scenematerials buffer~


easyfrog
12-06-2010, 09:32 AM
hello guys!~

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

Klunk
12-06-2010, 04:29 PM
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.

denisT
12-06-2010, 04:51 PM
hello guys!~

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

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

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

Bobo
12-06-2010, 05:25 PM
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...

CGTalk Moderation
12-06-2010, 05:25 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.