on / off checkbox for linking
by Heli Ellis
on
Oct 24, 2008 at 7:49:10 am
Hi,
I would like to build a rig for a cut-out character. I have linked both legs with a null object, which is linked with the torso. Now I would like the null to have a on/off check box so that when I move the torso down, I could "unparent" the hips null (so that the feet would remain on the ground level). When the character jumps, I would like to turn the check box on again, so that the feet would follow the torso. Does anyone know how to do this? Or does anyone know where to find a tutorial about rigging a cut out character in after effects?
Re: on / off checkbox for linking by Trent Armstrong on Oct 27, 2008 at 9:43:02 pm
unlimit = [2000, -1000]; // Using this to give clamp some freedom
null1 = thisComp.layer("Null 1").transform.position + value; // The value in here is 0, 270
ground = [207, 630]; // This is the left/right and up/down barrier
clamp(null1, unlimit, ground)
You might try using a clamp() expression.
You could read the position (and other attributes) of the Null into your leg layers instead of parenting them.
Then give them limits.
I built a sample comp with a Null 1 and a solid. You'll need to adjust your settings, but it should be fairly obvious what the constraints need to be.