Custom Ik Spline Solver

250 views
Skip to first unread message

Skarone

unread,
Jun 25, 2015, 10:27:41 AM6/25/15
to python_in...@googlegroups.com
I'm trying to create a custom Ik Spline Solver, with stretch in joints..
The rotation part of the joints works perfect, but when I try to apply scale to the joints, they scale more than they should, but if I check their scales values are correct..
I just save the initial length of the curve, and then check the current length and get the scale value from that ( currentCurveLength / initialCurveLength ).. the math is very simple.. 

I tried the code in python and in C++, both are getting the same issue.
I didn't found any information on how the solver really works..
Also I didn't found how to make the solver a real spline solver, because for now is detected as a simple ik solver..

If someone has some information in this topic and could help me :)


Marcus Ottosson

unread,
Jun 25, 2015, 10:30:43 AM6/25/15
to python_in...@googlegroups.com
Double check scale compensation on the joints. In the attribute editor, there's a toggle for it.

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/364e595a-d51b-4fa3-b936-f59761ae931a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Ignacio Urruty

unread,
Jun 25, 2015, 10:44:34 AM6/25/15
to python_in...@googlegroups.com
:/ No, that's not the issue...
The Scale values are ok... is like need a refresh in some step... if I modify the curve and then change the joint scale by hand in the channel box, the joints moves to the expected position...

Marcus Ottosson

unread,
Jun 25, 2015, 10:50:07 AM6/25/15
to python_in...@googlegroups.com

Well the scale values will act differently depending on scale compensation and whether your joints are part of the same hierarchy, your math will have to take that into account.

if I modify the curve and then change the joint scale by hand in the channel box, the joints moves to the expected position…

In that case it sounds like a dirty-propagation issue. Does it happen in both the old and new viewports?



For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Ignacio Urruty

unread,
Jun 25, 2015, 11:21:17 AM6/25/15
to python_in...@googlegroups.com
:( is the fucking viewport 2.0!

grrrr, if I switch to Legacy Default, works perfect!

Marcus Ottosson

unread,
Jun 25, 2015, 11:26:36 AM6/25/15
to python_in...@googlegroups.com
Yeah, don't worry too much about it. It happens with Maya's own nodes as well. It's simply not that great of an implementation, sadly.

On 25 June 2015 at 16:21, Ignacio Urruty <inia...@gmail.com> wrote:
:( is the fucking viewport 2.0!

grrrr, if I switch to Legacy Default, works perfect!

--
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_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Reply all
Reply to author
Forward
0 new messages