I'm trying to write a script that will collect the composite materials in the scene. However, I'm pretty new to maxscript and I'm stuck here: how do you tell the script to test if the material is a composite or another?
Here's the little code I have so far:
array_test = for a in sceneMaterials where (a == materialcomposite) collect a
Obviously the a == materialcomposite part doesn't work, because an empy collection is returned.