Maybe instead of having trying to find some way to automatically determine
how to rotate, which i think might not possible, why not provide a
attribute per joint which allow the user to flip the rotation direction?

On Monday, February 18, 2013, Bradon Webb wrote:

> here is my latest code:
> http://pastebin.com/dwaWn0nD
>
> here is an example scene file showing the problem
> http://pastebin.com/cGADrKnR
>
> the joints are good around the first two strips but once it hits the third
> row, they flip.
>
> the way this works, is I define the first two points I need from the edge.
>  the maya returns them in the vertex order I believe, so I run a test to
> see which point is farther out than the other, the one that is smaller is
> set as the origin point for the rotation matrix.
>
> sorry this math is really hard to describe and I try to heavily comment
> the code plus make examples.
>
> here is an image showing also the problem right around the corner the axis
> will flip.
>
> --
> 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:;>.
> To post to this group, send email to 
> python_inside_maya@googlegroups.com<javascript:;>
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 post to this group, send email to python_inside_maya@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to