Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions switching parented layers on and off

  • switching parented layers on and off

    Posted by Yianni Papanicolaou on April 29, 2010 at 3:34 am

    Hello All,

    I’m doing a piece of character animation in a cut out style using the trusted Dan Ebberts IK expression for a TV ad. Thing is, at some points I would like the hand and feet effectors parented to the torso and at others I would like the effectors to stay put while the torso moves to give the effect of the feet sticking to the ground and hands holding on to something, in my case the side of a mountain. So, is there a way of adding some kind of expression to the effectors with a parameter that can be linked to a switch expression controller so i can achieve this??

    Ta

    Y

    Yianni Papanicolaou replied 16 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    April 29, 2010 at 8:46 pm

    That’s a tricky one. You could try duplicating the effectors and parenting (or unparenting) the duplicates. Create a null layer named “control” with a checkbox named “effector control” and then modify the expressions to define the effectors like this:

    effectorControl = thisComp.layer(“control”).effect(“effector control”)(“Checkbox”);
    if (effectorControl == 1)
    effector = “l foot effector”
    else
    effector = “l foot effector 2”;

    That might work.

    Dan

  • Yianni Papanicolaou

    April 30, 2010 at 3:07 am

    Cheers Dan,

    I gave that one a go and it did work to some extent. A few problems however, when the checkbox is checked or unchecked the limbs suddenly move position, also when the box is checked to parent effectors to torso and the torso is moved the limbs move a bit faster than it. To be honest I’m going to work with unparented effectors and just muscle through a few jump and flip animations my character needs to do.

    Thanks for trying..

  • Yianni Papanicolaou

    April 30, 2010 at 3:13 am

    I was wrong, the only problem is the slight jump when the checkbox is checked and unchecked. I only tried it out on the upper part of an arm limb so that obviously conflicted with the lower limb ..

    ta

    Y

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