I'm trying to get access to material objects in my scene via the Maya API. What I need is a result/list similar to that which is returned from the getConnectedShaders(..) function on the MFnMesh object. However I want this list to be independent of meshes, ie returning all materials in the scene. Is this possible? The closest thing I have found is the MEL command "ls -materials"
QUOTE(Dacre @ 07/21/09, 03:09 AM) [snapback]312094[/snapback]The closest thing I have found is the MEL command "ls -materials"
And thus you may use that! But yes youd nee dto loop all dge nodes and sdee if they classify as materials.