ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linear Wipe transition values based on size of 'sourceRectAtTime' shape

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Niels B Nielsen
Linear Wipe transition values based on size of 'sourceRectAtTime' shape
on Nov 6, 2018 at 12:10: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?


Return to posts index

Sam Catt
Re: Linear Wipe transition values based on size of 'sourceRectAtTime' shape
on Nov 6, 2018 at 12:19:29 pm

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


Return to posts index

Niels B Nielsen
Re: Linear Wipe transition values based on size of 'sourceRectAtTime' shape
on Nov 6, 2018 at 12:35:33 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]


Return to posts index


Griffin Englander
Re: Linear Wipe transition values based on size of 'sourceRectAtTime' shape
on Nov 6, 2018 at 10:40:35 pm

You could always just animate the xscale of the shape.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]