Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions parenting expression

  • parenting expression

  • Tim Hildebrandt

    September 2, 2014 at 6:39 pm

    Thank you a lot. I will test it in few minutes. I want to create a template and the user should get the option to do this. And not with a square and a circle, of course not 😉

  • Tim Hildebrandt

    September 2, 2014 at 7:10 pm

    So this works great. Thank you very much 😀

    One question though. Would it be possible to keyframe it? So that the circle get back to his place. Therefore I would keyframe the start and ending sliders, but anyhow it doesn’t work.

    And I am quite new to expressions like these so please forgive me for this questions 😉


  • Dan Ebberts

    September 2, 2014 at 8:31 pm

    I don’t know if this is what you’re after, but it seems like if, after the comp time has passed the End time, you keyframe the End time returning to the Start time, the layer should return to its starting position.


  • Tim Hildebrandt

    September 2, 2014 at 9:34 pm

    THAT’S IT!!!

    Thank you so much.

    Almost lost my nerves on solving all this alone until I thought, some professional help can’t be that wrong 🙂

    Learned very much today! Thank you!

  • Ale Elizondo

    June 17, 2015 at 7:25 pm

    Hello Dan!!

    I have used a couple of expressions, including the explained expression of here for make a “write on effect” to begin in the second 1, however the brush position is outside of the “myProp” variant, I have analyzed it, but I have not yet understood this. I attached a picture where I show this. Thanks!!

  • Dan Ebberts

    June 17, 2015 at 7:52 pm

    One thing I see is that there is a line in your Brush Position expression that doesn’t make sense:

    if(time>Start && time){

    you probably need this instead:

    if(time>Start && time <= End){


  • Ale Elizondo

    June 18, 2015 at 2:16 pm

    Perfect that is the solution or the error rather!!!, Thanks Dan

  • Gustavo Saliola

    July 28, 2015 at 9:59 pm

    Hi Dan! As usual, all ways gets right here and you, every time is about expressions.

    Just need to use the tracking data (x,y) to parent the relative position of 4 (or more) continuous paint strokes. So don’t have to manually copy/paste and adjust every single stroke.

    Thanks again. You rock!

  • Pete Burges

    January 30, 2023 at 11:22 pm

    I have been trying to adapt the myParent expression so that it tracks the anchor point of a null rather than a keyed position- that way I can have something follow a layer that is already parented to something else. I have another script for targeting the anchor point, which works well, so I attempted to combine them:

    target = thisComp.layer(“Target”);
    follow = target.toComp(target.anchorPoint);
    value + (follow.value – follow.valueAtTime(0))

    It doesn’t work, and although I am fairly sure there’s something wrong with the way I’ve acquired the offset, I don’t know how to fix it. I would be grateful if anyone could explain why…

  • Dan Ebberts

    January 31, 2023 at 12:45 am

    Try it like this:

    target = thisComp.layer("Target");
    offset = target.toComp(target.anchorPoint) - target.toComp(target.anchorPoint,0);
    value + offset
Viewing 11 - 20 of 24 posts

Log in to reply.

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