Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Last active August 30, 2015 10:12
Show Gist options
  • Save SEVEZ/db2a770fe07e1fc90c3d to your computer and use it in GitHub Desktop.
Save SEVEZ/db2a770fe07e1fc90c3d to your computer and use it in GitHub Desktop.
def mDagPathFromName( name ):
selList = OpenMaya.MSelectionList()
selList.add( str( name ) )
mDagPath = OpenMaya.MDagPath()
selList.getDagPath( 0, mDagPath )
return mDagPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment