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 [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bf176251-d9db-4792-a460-9e89f7232ea3%40googlegroups.com <https://groups.google.com/d/msgid/python_inside_maya/bf176251-d9db-4792-a460-9e89f7232ea3%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/3767f103-8ea3-aa50-0601-205629bfd567%40haggi.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to