PDA

View Full Version : Script Quest - clamping distance between objects


obscurity
07-20-2006, 08:39 AM
Hi all,
I'm busy creating an IK rig in AE and need to create some sort of distance clamp for the feet and hands in my rig. I have used Dan Ennert's IK setup but the hands and feet leave their respective joints if pulled further away than the length of their parent limbs.
Does anybody have a script that keeps a child layer within a certain distance of the parent object?

thanks

graymachine
07-20-2006, 03:48 PM
Hi all,
I'm busy creating an IK rig in AE and need to create some sort of distance clamp for the feet and hands in my rig. I have used Dan Ennert's IK setup but the hands and feet leave their respective joints if pulled further away than the length of their parent limbs.
Does anybody have a script that keeps a child layer within a certain distance of the parent object?

thanks

There is a 'clamp' function for vectors that works like this:

clamp(value, limit1, limit2)

Maybe that would work for you.

obscurity
07-20-2006, 08:56 PM
Aha,
let me give that a bash.
Thanks Master Frank

CGTalk Moderation
07-20-2006, 08:56 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.