Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linear Wipe transition values based on size of ‘sourceRectAtTime’ shape

  • Linear Wipe transition values based on size of ‘sourceRectAtTime’ shape

    Posted by Niels b Nielsen on November 6, 2018 at 12:10 pm

    I have a project with a text and auto scaling box that scales based on the text input through the sourceRectAtTime expression. I want the box to wipe on, but the Linear wipe transition wipes according to the whole canvas width and not the actual dynamic size of the element.

    One solution to this I can think of is to calculate the wipe transition values (currrently from 0% to 100%) according to the size of the dynamic ‘sourceRectAtTime’ shape. But how do I do this in practice?

    Griffin Englander replied 7 years, 6 months ago 3 Members · 3 Replies
  • 3 Replies
  • Sam Catt

    November 6, 2018 at 12:19 pm

    This would depend on the expression used on the text ☺ mind sharing?

  • Niels b Nielsen

    November 6, 2018 at 12:35 pm

    The box size is defined by this expression:

    s=thisComp.layer(“sub1”);
    paddingx=50;
    paddingy=50;
    x=s.sourceRectAtTime(time-s.inPoint,true).width;
    y=s.sourceRectAtTime(time-s.inPoint,true).height;
    [x+paddingx,116]

  • Griffin Englander

    November 6, 2018 at 10:40 pm

    You could always just animate the xscale of the shape.

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