Oh, I should have spotted that before. I think your problem is that you
don't want this bit at all:
if dot < 0.0:
m_quaternion_2.negateIt()
dot *= -1.0
The whole point of that negation is to get the two quaternions within 180°
of each other. If you remove those lines, your quaternions slerp nicely up
to 360°. They get messy at 360 though, but I think that is unavoidable.
Is that it?
On Thursday, 28 September 2017 00:34:41 UTC+10, Rémi Deletrain wrote:
>
> *Michael Boon*
>
> I've attached two files to this post. rdTwist is my node. Browse this
> plugin with pluginManager and open ma file.
> I try to make a twist between two rotation. Red handle is base of my
> rotation. Green handle is my principal rotation and yellow handles is
> slerped rotation.
>
> But when you rotate hover 180° yellow handles flip. I don't arrived to
> have continous rotation.
> I try to make twist with separate rotation (Roll, Pitch, Yaw) but is same
> result...
>
> You have any idea ?
>
--
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/36acac1c-d77a-42be-875c-f097d3d98b8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.