Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is it possible to get the bounding box height width from a precompose collapsed transformation

  • Is it possible to get the bounding box height width from a precompose collapsed transformation

    Posted by Marc Otten on May 30, 2017 at 7:54 pm

    Think not but maybe:
    Is it possible to get the bounding box height/width from a precompose with collapsed transformation on?
    After Effects shows the “right” bounding box if collapsed transformation is on.
    I really would like this information (height/width)

    Marc Otten replied 8 years, 11 months ago 2 Members · 4 Replies
  • 4 Replies
  • Chris Scalzo

    May 30, 2017 at 9:39 pm

    What you are probably looking for is SourceRecAtTime. Many youtube videos and forum posts explaining it.

    var mytext = thisComp.layer(“text”);
    ;text width = mytext.sourceRectAtTime().width;
    ;text height = mytext.sourceRectAtTime().height

  • Chris Scalzo

    May 30, 2017 at 9:43 pm

    Ps. This the the pixel dimsions of the text itself. The bounding box the text is inside is not measureable.

  • Marc Otten

    May 31, 2017 at 10:10 am

    Not I’m not looking for SourceRecAtTime (all ready using that in the precompose)

  • Marc Otten

    May 31, 2017 at 10:12 am

    I’m not looking for the bounding box for the text but for the composition.
    Funny enough After Effects shows this bounding box correctly when activating collapse transformations…
    But as I all ready expected this isn’t measurable either..

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