Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions edit expression after seperate dimensions

  • edit expression after seperate dimensions

  • Adam Greenberg

    June 2, 2016 at 1:54 pm

    HI all,

    I have an expression working great, but I need to edit it because I now need to separate dimensions of my position layer. I need to do this because I have another expression I will apply only to the ‘Y’ position. Here is the expression working great which as you can see only relates to the ‘X’ position.

    So can someone please tell me how I can make this expression work once both layers have had their dimensions separated. Then i need to apply this expression to the x only.

    gap = -691;
    L = thisComp.layer(“MENTION”);
    rect = L.sourceRectAtTime(time,false);
    x = L.toComp([rect.left+rect.width,0])[0];

    So this expression basically moves my text layer to begin after a fixed number of pixels after the ending of another text layer.

    Thank you very much

  • Dan Ebberts

    June 2, 2016 at 4:09 pm

    I haven’t tested this, but I think you can just change the last line to:



  • Adam Greenberg

    June 2, 2016 at 4:47 pm

    Wow, yup. Ok thanks. I was expecting a few of the lines above to be edited, but this is even simpler that I thought, I wish I could find more resources on the actual language.

    Thanks a lot Dan

Viewing 1 - 3 of 3 posts

Log in to reply.

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