Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Advanced Parent/Child Properties Question

  • Advanced Parent/Child Properties Question

    Posted by Grant Lovering on July 26, 2006 at 11:30 am

    Hi all,

    We are rigging some characters for an animation job and used a combination of parent/child relationships combined with some Inverse Kinematics scripting we came across. We are currently trying to constrain the range in which one of the elements moves and think this can be achieved with an expression that limits the range and moves at a ratio based on some of the other elements in the chain.

    For my mind to achieve this we need to extract some of the actual coordinate information from elements in the parent child chain. Unfortunately from what I can tell a child’s property data does not update when it responds to it’s parents movements. It still shows the initial data it had when the link was made, even thought it may be moving, scaling or rotating in synch with it’s parent.

    The question:
    Does anyone know how to retrieve the actual data of a child, such as it’s current position (as affected by it’s parent).

    I hope I have explained this well enough to understand what the question, thought some background might help.

    Look forward to hearing some thoughts –
    Cheers.
    G.

    Barend Onneweer replied 19 years, 9 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 26, 2006 at 12:54 pm

    You need to use the Layer Space Transforms.

    It would look like this:

    C = thisComp.layer(“child”);
    childPosition = C.toWorld(C.anchorPoint);

    There’s also a transform to move the child’s position into comp (view) space that’s the same as above except you use “toComp()”.

    Dan

  • Barend Onneweer

    July 26, 2006 at 1:40 pm

    On another note:

    For 2D cut-out character animation have a look at Moho:
    https://www.lostmarble.com/

    It’s 90 bucks, but features everything I hope AE will one day do in terms of bone skeletons with inverse kinematics, and bend deforms based on the bone skeleton…

    Bar3nd

    Forum COWmunity leader for:
    ADOBE AFTER EFFECTS
    MAGIC BULLET SUITE
    INDIE FILM & DOCUMENTARY

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