Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions sourceRectAtTime – behaviour questions

  • sourceRectAtTime – behaviour questions

    Posted by Wick Van den belt on October 3, 2016 at 9:12 am

    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

    Wick Van den belt replied 9 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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