Hi guys!
Could somebody help me?
I am trying to get the MDagPath in the API 2.0. My code in the old api is working fine:
def getMDagPath_old(name):
dag = om.MDagPath()
sel = om.MSelectionList()
sel.add(name)
sel.getDagPath(0, dag)
return dag
But in the 2.0 is not working… its returning the name instead of the MDagPath Object:
def getMDagPath_new(name):
sel = new_om.MSelectionList()
sel.add(name)
dag = sel.getDagPath(0)
return dag
For sure its a very very beginner doubt, Im sorry and thanks for attention!