View Full Version : Delete Unused Nodes in 3dsmax
Xtruder 06-27-2005, 07:59 AM Hi everybody!
Does anyone know if in 3dsmax there is a command
like the Maya's "Delete Unused Nodes"?
I need to delete all unused materials from the scene
but I don't know how!
Thanks!
|
|
galagast
06-27-2005, 08:25 AM
hmm.. one way i recall max handles its materials is through maxscripts' "scenematerials" function. This is where materials in the scene are stored, once you delete an object that has a material assigned, it is also deleted in the scenematerials.. although it doesnt update very much interactively...(i mean that you need to relaod the scene so that you'd get a fresh scenematerials)
If you were refering to materials in the Material Editor, you could run this script:
for i in 1 to 24 do for m in scenematerials where m.name != ((medit.GetTopMtlSlot i).name) do meditmaterials[i] = standard()This will loop through each material editor slot, get and compare base names from the material editor and the scene materials, if a mismatch is found, it will reset the current slot to a default one... although this wont usually work with scenes having same material names.. might as well backup your file first before running this script.:)
i might be making things more complicated, sori... hope this helps.
Xtruder
06-27-2005, 08:28 AM
Thanks a lot! I'll try this script immediatly :D !!
CGTalk Moderation
06-27-2005, 08:28 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.