ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Shape size auto-adjust to text - excluding text descenders!

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Gates Bradley
Re: Shape size auto-adjust to text - excluding text descenders!
on Nov 9, 2017 at 1:35:05 pm

Any chance there is a way to do it without actually cropping the layer? I've made a custom cursor that moves with the text using sourceRecAtTime, using an expression posted by Dan Ebberts (thanks Dan!), but the descenders keeping changing the cursor's position in Y space, when I want it to only respond to X plane info. As soon as a p or a y comes on the screen, the cursor shifts lower on the Y plane.

xOffset = 220;
yOffset = 0;
L = thisComp.layer("1138 may ln phoenix");
rect = L.sourceRectAtTime(time,false);
L.toComp([rect.left+rect.width,rect.top+rect.height]) + [xOffset,yOffset];


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]