Re: [Maya-Python] trying to understand the handles in API

2016-08-10 Thread Rudi Hammad
you have no idea how much I appreciate your explanation! thank you very much! I don´t now c++ so that was a huge help. thanks! El miércoles, 10 de agosto de 2016, 12:31:24 (UTC+2), Christopher Crouzet escribió: > > If you look at the C++ Maya API doc, you'll see that the ` > MSelectionList::getD

Re: [Maya-Python] trying to understand the handles in API

2016-08-10 Thread Christopher Crouzet
If you look at the C++ Maya API doc, you'll see that the ` MSelectionList::getDagPath` method is defining a parameter `MDagPath & dagPath`. In C++, the `&` character denotes what is called a reference . What it means here is that `dagPath` is a

[Maya-Python] trying to understand the handles in API

2016-08-10 Thread Rudi Hammad
So this is the code ( it is quite simple so I didn´t use paste bin, I hope it is okey) import maya.OpenMaya as OpenMaya cmds.polyCube() mSel = OpenMaya.MSelectionList(); mSel.add('pCube1') mDagPath = OpenMaya.MDagPath() mSel.getDagPath(0, mDagPath) mDagPath.fullPathName() that is what I learn i