-
sourceRectAtTime – behaviour questions
Hi all,
I am experiencing a few difficulties with the sourceRectAtTime on a shape layer.
Mostly it’s working all perfect, except when including a few characters (mostly with symbols like @ _ and $).
The shape is actually getting smaller in height when I use any of those characters anywhere in the text. -I have tried adjusting just the font size for those characters, but even that band-aid solution didn’t even work. (Also when using characters like î ü, etc the shape layer shows the same behaviour)My second question regarding this expression, is how it could respect spaces at the end of the text (if possible).
(Right now the shape layer remains to have the same width when a space is entered. )Fyi: The expression I am using on the size of the shape layer right now has an increased width and heigth in the expression to create some padding.
s=thisComp.layer(“text”);
x=s.sourceRectAtTime(time-s.inPoint,true).width+190;
y=s.sourceRectAtTime(time-s.inPoint,true).height+50;
[x,y]Hope that explains where I’m at right now 🙂
Thanks!
WickieMedia.net
Sorry, there were no replies found.