Sign in to follow this  

Maya API: get material list?

Recommended Posts

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" thanks

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this