Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › How to reduce dashes AND offset on a stroke over time? (solved)

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

    Posted by Spencer Evans on January 22, 2018 at 10:04 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.

    Spencer Evans replied 8 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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