LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

ikHandle does not return pynodes #410

Closed salvatimarc closed 6 years ago

salvatimarc commented 6 years ago

i found out that ikhandle command would return an array of strings when called with a name that already exists in the maya scene. This will happen only if the already existing node is not at the root. so one can reproduce the problem by : creating two joint chains (joint1,joint2,joint3) and (joint4,joint5,joint6) execute pm.ikHandle(name="myikhandle", startJoint="joint1", endEffector="joint3") (this last command returns array of Pynodes) parent myikhandle to something (creating a group is enough) execute pm.ikHandle(name="myikhandle", startJoint="joint4", endEffector="joint6") (this last command returns array of string)

pmolodo commented 6 years ago

fixed in:

https://github.com/LumaPictures/pymel/commit/cb5175ad1793c19311ad3f55c5d25513ec81e974

Thanks for reporting, let us know if you find any more nodes with a similar issue!