View Full Version : Deleting unused Materials in Material Editor
Ingsoc75 05-11-2005, 02:01 PM Coming from using Maya there was a feature in it's material thing that would automatically remove all unused materials in the scene. Is there such a feature in Max?
|
|
ToddD
05-11-2005, 02:15 PM
Go to scriptspot.com and search for clearmedit, it sounds like it does exactly what you are looking for :)
Todd
LoneRobot
05-11-2005, 04:04 PM
for i = 1 to 24 do
(
meditmaterials[i] = Standard()
meditmaterials[i].name = "Material " + i as string
)
soulburn3d
05-16-2005, 06:54 PM
for i = 1 to 24 do
(
meditmaterials[i] = Standard()
meditmaterials[i].name = "Material " + i as string
)
Well that code will clear all slots, not just the unused ones.
- Neil
galagast
05-17-2005, 01:45 AM
for i in 1 to 24 do for m in scenematerials where m.name != ((medit.GetTopMtlSlot i).name) do meditmaterials[i] = standard()
-- loop from 1 to 24 slots
-- loop from all scenematerials
-- compare base material names
this code will sort of do the trick, but it wont clean the material slot if it has duplicate base material names.
hope this helps :)
CGTalk Moderation
05-17-2005, 01:45 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.