Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions on / off checkbox for linking

  • on / off checkbox for linking

    Posted by Heli Ellis on October 24, 2008 at 7:49 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?

    Cheers,

    Heli

    Trent Armstrong replied 17 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Trent Armstrong

    October 27, 2008 at 9:43 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.

    Trent Armstrong – Creative Cow Leader
    https://www.dallasaeug.com

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy