Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / How to query material's shadingEngine(set) name?
  RSS 2.0 ATOM  

How to query material's shadingEngine(set) name?
Rate this thread
 
55615
 
Permlink of this thread  
avatar
  • Total Posts: 44
  • Joined: 02 November 2008 11:06 AM

I created a lambert material, renamed it to ‘mat1’. The shading engine’s name is still ‘lambert2SG’.
To apply this material, via python, i can write

mc.sets(forceElement = ‘lambert2SG’)

My requirement is that the user inputs the name of the material, for say, ‘mat1’ and the python should query the name of the shading engine i.e. lambert2SG and apply it to the object.

Now the problem is how to query which set(or the name of the shading engine) the ‘mat1’ belongs to?
I tired ls command but no good. Plz help.

maya 2011 64 bit



Replies: 0