Notifications
Clear all
[Closed] list all material
Nov 18, 2015 7:42 am
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
Nov 18, 2015 7:42 am
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
Nov 18, 2015 7:42 am
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
Nov 18, 2015 7:42 am
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