the information that I am getting seem a bit muddied
What information have you been getting? Also, where are you finding that function? Your example doesn’t work for me, and looking through the source doesn’t bring anything up.
Can I ask why use pyMel, when you have a much faster and more pythonic API, om2?
For what? We don’t even know what it is he’s trying to accomplish? What if it’d actually be slower, and less Pythonic? There’s no way of telling at the moment. Or are you just generally touting “om2” (which I presume means maya.api.OpenMaya
) as a replacement for anything involving PyMEL?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bf176251-d9db-4792-a460-9e89f7232ea3%40googlegroups.com.
That's because Pymel is not PyAPI. Pymel simplifies the work with non-api related tasks a lot.
And you can combine the simplified Pymel MObject with the python API.
With a pure api access you have to make a MSelectionList get the current MObject etc. With pymel you can access the MObject or MFn directly.
haggi
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
That's because Pymel is not PyAPI. Pymel simplifies the work with non-api related tasks a lot.
And you can combine the simplified Pymel MObject with the python API.
With a pure api access you have to make a MSelectionList get the current MObject etc. With pymel you can access the MObject or MFn directly.
haggi
Am 19.11.2017 um 11:07 schrieb Simon Anderson:
Can I ask why use pyMel, when you have a much faster and more pythonic API, om2?--
On Sunday, 19 November 2017 06:11:28 UTC+11, Tom Whitzer wrote:I am curious if anyone could provide me with an example of the the orientJoint() function in PyMel. I have been searching online to see how to properly use it, and the information that I am getting seem a bit muddied. I can't tell if orientJoint is actually a function or if it is a flag that I call when I create a joint. Sorry if this is an obvious thing to know.
Some of the code that I was trying was:
from pymel.core import *
parent = selected()[0].root()orientJoint(parent)
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bf176251-d9db-4792-a460-9e89f7232ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3767f103-8ea3-aa50-0601-205629bfd567%40haggi.de.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.