Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 13, 2014 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/c136e7280561f5a18d21 to your computer and use it in GitHub Desktop.
Save fereria/c136e7280561f5a18d21 to your computer and use it in GitHub Desktop.
import maya.OpenMaya as om
sel = om.MSelectionList()
sel.add("pCube1")
path = om.MDagPath()
sel.getDagPath(0,path)
path.extendToShape()
print(path.fullPathName())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment