Move object a percentage towards another object (python)

Move object a percentage towards another object (python)

petecmartin
Advocate Advocate
348 Views
0 Replies
Message 1 of 1

Move object a percentage towards another object (python)

petecmartin
Advocate
Advocate

Hi, 
This may be more of a maths type question...but I'm trying to fix hyper extension on my characters legs via a script.  I know what I need in to do - for example, if the distance between RightHipsEffector and RightAnke Effector is X then Pull the Hips Effector down a bit towards the mid point between the right and left ankle effectors.
How would one move the HipsEffector towards this mid point and then detect that the distance is no longer X and then stop & key the position?

I know you could do this with position or parent/child constraints for the hip - to - ankle and the ankle - to - ankle mid points, then create an AuxEffector for the hips and position the same as the mid point between the two ankles  - then key the reaches.  But, i'd like to solve it in a less awkward way!

Cheers.

0 Likes
349 Views
0 Replies
Replies (0)