Message 1 of 3

Not applicable
03-08-2018
03:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I am trying to use cmds.ls with the flag of material=True to get the name dag object and linked material of my selected objects in maya. However I am not getting back the material information.
This is the code line I have;
cmds.ls( dag=True, ap=True, sl=True, mat=True, textures=True )
I am getting back;
[u'pipeline_pipeline1:pTorus1', u'pipeline_pipeline1:pTorusShape1']
And I have selected a Thorus geometry with a Blinn shader linked to it. Any thought of how I could get back also the shader?
Many thanks in advance!
Joan
Solved! Go to Solution.