That's not a bug.
The first argument is supposed to be an object. The docs say this function
was modified to accept any iterable.

In pymel youre in object-oriented mode so just use the method on the object
to affect rotation.

node.rotate.set((0,45,0))

If you're going to use pymel, take advantage of OOP.

On Friday, February 26, 2016, Todd Widup <todd.wi...@gmail.com> wrote:

> figured out what it is
>
> if I do
> pm.rotate(0,45,0,r=1,os=1)
> its actually rotating 45 on x, not y..its thinking that first 0 is an
> object, but it still applies it to the selected node, so that is a bug
>
> On Fri, Feb 26, 2016 at 7:33 AM, Todd Widup <todd.wi...@gmail.com
> <javascript:_e(%7B%7D,'cvml','todd.wi...@gmail.com');>> wrote:
>
>> hmmm strange...anyways..in a list here, it errors.  not sure whats going
>> on..oh well...was just trying to figure out if this was a bug or not
>>
>> On Fri, Feb 26, 2016 at 2:30 AM, Martin Y <furik...@gmail.com
>> <javascript:_e(%7B%7D,'cvml','furik...@gmail.com');>> wrote:
>>
>>> In pm you need to put the coordinates in a list or tuple.
>>>
>>> pm.rotate((0,45,0), os=True, r=True)
>>> pm.rotate([0,45,0], os=True, r=True)
>>>
>>> works fine
>>>
>>> pm.rotate(0,45,0, os=True, r=True)
>>>
>>> doesn't.
>>>
>>> I tried the pymel examples where they aren't using lists or tuples and
>>> it doesn't work here even when I'm using the same pymel version.
>>> I guess the pymel examples in the manuals are outdated.
>>>
>>> Martin
>>>
>>>
>>> On Friday, February 26, 2016 at 7:45:54 AM UTC+9, todd....@gmail.com
>>> <javascript:_e(%7B%7D,'cvml','todd....@gmail.com');> wrote:
>>> > but the point is...try teh commands...pymel is rotating a node
>>> differently than maya.cmds or mel
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com
>>> <javascript:_e(%7B%7D,'cvml','python_inside_maya%2bunsubscr...@googlegroups.com');>
>>> .
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/7234f8b3-528d-495e-ad39-755d5a9224ee%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> t...@toddwidup.com <javascript:_e(%7B%7D,'cvml','t...@toddwidup.com');>
>> todd.wi...@gmail.com
>> <javascript:_e(%7B%7D,'cvml','todd.wi...@gmail.com');>
>> www.toddwidup.com
>>
>
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> t...@toddwidup.com <javascript:_e(%7B%7D,'cvml','t...@toddwidup.com');>
> todd.wi...@gmail.com
> <javascript:_e(%7B%7D,'cvml','todd.wi...@gmail.com');>
> www.toddwidup.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 python_inside_maya+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','python_inside_maya%2bunsubscr...@googlegroups.com');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABBPk37somKN6mCQtTK-N%2BnhbGYix8aeLHo5npi6yyDHfZHVeQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk37somKN6mCQtTK-N%2BnhbGYix8aeLHo5npi6yyDHfZHVeQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jpc1%2Bw5eMJgQQuiJjaGjNQmJxE3e67YX_FKX-oZCTqQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to