Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Forked from lapaev/get_obj_with_material.py
Created May 11, 2016 20:15
Show Gist options
  • Select an option

  • Save SEVEZ/7daf272e526da4a7fbe457badbca0e27 to your computer and use it in GitHub Desktop.

Select an option

Save SEVEZ/7daf272e526da4a7fbe457badbca0e27 to your computer and use it in GitHub Desktop.
Material = cmds.ls(sl=1)
ObjsWithMatSG = cmds.listConnections(Material,type='shadingEngine')
ObjsWithMat = cmds.listConnections(ObjsWithMatSG,type='shape')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment