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