Skip to content

Instantly share code, notes, and snippets.

@lapaev
Created January 24, 2015 18:13
Show Gist options
  • Select an option

  • Save lapaev/2c378d23b657d4d10f5d to your computer and use it in GitHub Desktop.

Select an option

Save lapaev/2c378d23b657d4d10f5d 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