Activity › Forums › Adobe After Effects Expressions › edit expression after seperate dimensions
-
edit expression after seperate dimensions
-
Adam Greenberg
June 2, 2016 at 1:54 pmHI 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];
[x+gap+width/2,value[1]]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 pmI haven’t tested this, but I think you can just change the last line to:
x+gap+width/2
Dan
-
Adam Greenberg
June 2, 2016 at 4:47 pmWow, 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
Reply to this Discussion! Login or Sign Up
Log in to reply.