Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to use “sourceRectAtTime” expression with characters below the font baseline

  • How to use “sourceRectAtTime” expression with characters below the font baseline

    Posted by Henry Gaunt on July 25, 2017 at 8:37 am

    Hello cows –

    I’m using this expression on a shape layers ‘rectangle path 1’

    s=thisComp.layer("THIRETEEN");
    padding = 60;
    x=s.sourceRectAtTime(time-s.inPoint,true).width;
    y=s.sourceRectAtTime(time-s.inPoint,true).height;
    content("Rectangle 1").content("Rectangle Path 1").size/2;
    [x+padding,y+padding]

    It works perfectly.

    However, when my text layer has a ‘,’ (comma) in it, the whole box increases in size all the way around. Almost like a 10px stroke is being added.

    It affects any character that sits below the text base line. e.g.; q, y, p – I’ve solved it by using upper case, but the comma is still persistent.

    Is there a reason for this?

    Thank you for any help.

    Henry Gaunt replied 8 years, 9 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