Instantly share code, notes, and snippets.

@fereria /getDAGPath.py Secret
Created Feb 13, 2014

Embed
What would you like to do?
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