Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Why is this crazy stuff happening? (expressions + parenting nonsense…)

  • Why is this crazy stuff happening? (expressions + parenting nonsense…)

    Posted by Erin Shelby on March 27, 2006 at 5:11 am

    Okay, I made a forward kinematics character, and to keep it simple it lets just ignore the other limbs and it goes:

    Body <- Thigh <-Calf <-Foot... Now I have a solid layer with a BEAM effect on it and the idea was to make a BEAM going from the Foot of the character to another point. So I put this expression on the "Starting Point" of the beam: thisComp.layer("FOOT").transform.position Thinking, logically, that the beam would go to the position of the FOOT and follow it. Oh how wrong I was...it goes far away, way off the mark. I tried some other additions to the expression to make it work but I think I'm critically missing something here.

    Erin Shelby replied 20 years, 1 month ago 3 Members · 3 Replies
  • 3 Replies
  • Alon_a

    March 27, 2006 at 5:19 am

    The trick with parenting is that the parented object gets its own local coordinate system. This is good since it lets you, for instance, animate rotations indpendently of what the parent object is doing. The downside is that you have to translate those local coordinates to global ones if you want to tell an expression where things actually are.

    See, for instance, here:

    https://forums.creativecow.net/cgi-bin/new_read_post.cgi?univpostid=873210&forumid=2&postid=873252&pview=t

    – Alon

  • Mylenium

    March 27, 2006 at 5:37 am

    The magic word is layer space transforms. As alon_a says, you need to add this to your expressions. In your example it could be something like that:

    foot=thisComp.layer(“Foot”);
    foot_point=foot.toWorld(foot.anchorPoint);

    [foot_point]

    Mylenium

    [Pour Myl

  • Erin Shelby

    March 27, 2006 at 5:51 am

    Amazing, I think I understand now. Thank you.

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