FORUMS: list search recent posts

sourceRectAtTime() of shape layer before trim path ?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anders Hattne
sourceRectAtTime() of shape layer before trim path ?
on Feb 20, 2017 at 5:21:48 pm

Hello!
I am trying to automate drawing some shape layers with trim path - the time it takes for the line to be drawn should depend on the length of the line which I got with sourceRectAtTime()
But I think my problem is that when trim path is at 0% sourceRectAtTime will give me a value of 0 and draw the line in no time
Is there any way of getting the size of the layer before trim paths?

layerS= thisLayer.sourceRectAtTime();
h = layerS.height;
w = layerS.width;
len = length([0, 0], [w, h]);

trans = linear(len, 200, 800, minTim, mxTim);
a = linear(time, startTime, startTime + trans, 0, 100);


http://www.ardillamedia.com


Return to posts index

Anders Hattne
Re: sourceRectAtTime() of shape layer before trim path ?
on Feb 20, 2017 at 5:24:05 pm

Solved!
For now increasing the minimum time seems to have done the trick!!

http://www.ardillamedia.com


Return to posts index

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