Last active
August 30, 2015 10:12
-
-
Save SEVEZ/db2a770fe07e1fc90c3d to your computer and use it in GitHub Desktop.
Get Dag path from nameFrom http://www9.atwiki.jp/hajimen/pages/130.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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