alfo
I was wondering if this could be a good addition to the already amazing SOUP .

I was imagining a slerp interpolation node, where you can simply pipe in Two transforms, eg. A Top, and Bottom , and also pipe in consequently all the middle ones ( imagine a simple ik spline spine setup, with 10 joint inbetween ), all the in-between joints will blend in rotation/twisting nicely between the top and the bottom transforms using some magic quaternion trick (slerp?) , the joints inbetween will not flip at 180degrees any longer, with theoretically creating something rock solid for rigging of any sort of Spline Base setup, (characters Spine, StretchyBendy cartoony arms, Tentacles, Snakes, cables , plus it could be also potentially used to nonFlip/nongimbal interpolate between animations, constraints and more  ).

It would be great if in addition from a ramp like attribute we could also decide how to distribute the rotation, if in a linear way or not basically by shaping the ramp.

One optimized node could hold everything in regards rotations inputs and outputs for ease of use and setup.

I think this would make any animator/rigger a very happy person..:)

-a
pshipkov
Did you try the maya muscle curve ?
It is a bezier spline based.
Also i have something similar, can pass it to you.
For two points with tangents assigned to them you can do what you are looking for.
The muscle spline flips at 180, mine goes beyond that but eventually flips too.

There was something new i believe in Maya2016.5 related to curve tools, but didn't test it yet.
Reply 0 0
alfo
Hi!
i did a while back,although i felt was not quite what i was after (not as solid) , so i preferred to stay with spline IK .

The real only issue being the twist.

I did try out the new curve warp deformer, and i think it is possible to rig something using a nurbs plane (in a similar way as the ribbonSpine is setup, driving folicles and such..) altho i think again is not an ideal solution, since ik spline would still be preferred, being very simple, only issue being solving the twist past 180, which in an ideal world i would love to solve using 1 maya node..

If is possible for me to have a look at your solution it would be great.

cheers

-a
Reply 0 0
RumbleMonk
Hey, I too was looking into something like this as I'm starting up something that requires some extreme flexibility all over the characters.

Peter, I'd love to take a look at what you were mentioning as well if possible. I'll play around with the new curve warp deformer when I get a chance, there might be something there... but looks unlike that an upgrade will happen for this project. :/

Thanks!
Reply 1 0
alfo
Hi pshipkov,

any news in regards ?

I would be interested in better understanding how to push the 180 slerp flipping issue , for what i understood reading about it online, slerp always interpolates between the shortest path, which is the reason why the object does flip to minus when the master object past 180degrees (since is shorter from the other side?) , im wondering if is there any solution to this .

cheers
Reply 0 0
pshipkov

I forgot about this thread.
Attaching you the script.It is at least 12 years old - so use with care.

Reply 0 0
alfo
Hi Pshipkov,

thank you for the script, i had a quick look and it seems quite a solid setup, i really like the Hermite Setup with the tangents as well, with the extra twist controls and lets you rotate the twist from the middle part as well.(it reminds me of the Two parallel splines ik setup )
The only possible issue (although less of an issue in this case, due to the extra twist controls provided) is the usual +-180 flip(360 in total) of the main controls, all in all tho is seems very cool .


Thanks again, ill try to investigate some more and will post here if i can find a solution .

cheers
-a

ps . So far the only working +-360 (720 degrees rotation )that i have seen is this one made in xsi-ICE
, wonder what trick did he used :).
Reply 0 0
pshipkov
EDIT: Taking some of what i said back. Had a brief read online about the subject and need to try few things first. For now leaving the code in case you want to try it too. Will try to find some time for this in one of the next days.

I remember somebody long time ago showing me a custom ik spline that didn't flip. But that was years and years ago and cannot remember any details. I think it was used on the movie snakes on the plane.


import maya.cmds as mc
import maya.api.OpenMaya as om
def slerp(driver1, driver2, driven, weight):
    sl = om.MSelectionList()
    sl.add(driver1+".worldMatrix")
    sl.add(driver2+".worldMatrix")
    sl.add(driven)
    q1 = om.MTransformationMatrix(om.MFnMatrixData(sl.getPlug(0).asMObject()).matrix()).rotation(asQuaternion=True)
    q2 = om.MTransformationMatrix(om.MFnMatrixData(sl.getPlug(1).asMObject()).matrix()).rotation(asQuaternion=True)
    spins = 0
    q = om.MQuaternion.slerp(q1, q2, weight, spins)
    om.MFnTransform(sl.getDagPath(2)).setRotation(q, om.MSpace.kWorld)
slerp("a", "b", "c", 0.5)
Reply 0 0
alfo
sorry for the double post
Reply 0 0
alfo
sorry for the double post
Reply 0 0
alfo
Hi Pshipkov ,

thank you! This is very helpful indeed!

Im quite curious about this matter (and finding a solid working solution ) and im looking forward to any updates !

ps : this is something i was trying to figure out in my head, keeping track of the rotations seems it could be a good solution, then add/subtract depending on how many degree of rotation , although, this would need to be kept track on the current (slerped ) object ? or one of the two masters (rotating objects) ?

Also in terms of rotations, is the flip occurring because we are converting/grabbing euler rotations ? Do quaternion ever flip ?

I read online about someone solving the issue of 360 full spin using the waiter trick/belt trick, (basically holding a belt in your hands and holding joining the two extremes twisted 180 between the two, this gives a circular path that revolves 360 around the belt, first from the inside, then to the outside) something like this , i don't  know if this could be of any help.. https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Spinor_on_the_circle.pdf/page1-787px-Spinor_on_the_circle.pdf.jpg


-a

Reply 0 0
alfo
some more information in regard.
http://www.anim8or.com/learn/technical/quaternions_and_anim8or/quaternions_and_anim8or.htm
Reply 0 0
Reply