ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to reduce dashes AND offset on a stroke over time? (solved)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Spencer Evans
How to reduce dashes AND offset on a stroke over time? (solved)
on Jan 22, 2018 at 10:04:30 pm
Last Edited By Spencer Evans on Jan 22, 2018 at 10:29:43 pm

Hello, I was looking for a way to reduce a random number of dashes on a stroke over time, starting at a given time. Using some similar code from Dan (https://forums.adobe.com/thread/1612864), I was able do to this like so by applying this to the "Dash" value of the stroke:


animationTime = 4;
seedRandom(index,true)
tStart = 3; // start at 3 sec from beginning of comp
startDashes = random(5,100);
endDashes = 0;
 
ease(time, tStart, tStart + animationTime, startDashes, endDashes);


Figured I'd share in case any other inexperienced coders like me need this solution. :) Thanks Dan.


Return to posts index

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