Notifications
Clear all

[Closed] list all material

How to get list all material and nest material using maxscript?
I could use scenematerial, but there’s a lot material that contain nest materiall like composite, shellac, blend…
It is really hard to collect by checking each material and nest material

3 Replies

just found this one http://www.scriptspot.com/3ds-max/scripts/search-materials-and-maps?page=1
But it look like manual, we have to check each material to find the nest material

This will collect all materials, regardless of whether or not they are nested in other materials:


 mats = #()
 for matClass in material.classes do
 (
 	for m in (getclassinstances matClass processAllAnimatables:true processChildren:true) do append mats m
 )
 
 print mats

 

Also check out the sLib maxscript here:

http://www.neilblevins.com/cg_tools/scripts/3dsmax/soulburnscripts.htm

It contains a lot of functions including a number of collect all materials / maps in a scene.

  • Neil