Back in the days, I wrote a Point and Matrix implementation for these
purposes, maybe it can help you understand the math behind things. Today, I
believe PyMEL provides similar functionality out of the box.

   - https://gist.github.com/mottosso/7fa7a8ae6f5fad963b92

Especially see the rotate()
<https://gist.github.com/mottosso/7fa7a8ae6f5fad963b92#file-point_and_matrix-py-L84>
method of Point.

Best,
Marcus
​

On 29 October 2014 13:20, sam williams <[email protected]> wrote:

> hey Pedro, as you can only specify x,y and z axis. Is there a way of using
> a specific vector to rotate around? so if instead of y being (0,1,0)
> can (-0.12542495647, 0.971342830439, -0.201895235331) be used to represent
> the y axis to use in the rotateBy method.
>
> thanks,
> Sam
>
> --
> 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/2cbe8989-10ea-4f60-9ba7-4d17685f5704%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/2cbe8989-10ea-4f60-9ba7-4d17685f5704%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
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/CAFRtmOD4%2Bg2p5iq7KWo7QX7DBygipcVhefxMtZs7pE8WeAA-Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to