Thank you both for getting back to me. I found the information on it here
<http://download.autodesk.com/global/docs/maya2012/en_us/PyMel/generated/functions/pymel.core.animation/pymel.core.animation.joint.html>.
I am working on a script that creates joints at the positions of selected
objects. I have have the joint creation finished, but I want to orient the
joints after they are created.

Here is the code that I have written for the joint creation
<https://github.com/TomTomW/mayaScripts/blob/master/jointCreator.py>

I am using PyMel, because I am familur with python and trying to learn how
to code for Maya.

Tom

On Sun, Nov 19, 2017 at 7:10 AM, haggi <[email protected]> wrote:

> 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].
> 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
> <https://groups.google.com/d/msgid/python_inside_maya/3767f103-8ea3-aa50-0601-205629bfd567%40haggi.de?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
------------------------------------
Tom Whitzer
http://www.tomwhitzer.com

-- 
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/CAKGAQ_C-vj3%2Bq6dqOUVF7Px%2Bz2EmZjuKtk1f0nZNWU4Cg%3DLyVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to