Forum Replies Created

Page 2 of 2
  • RP Koop

    May 28, 2023 at 8:34 pm in reply to: Eye-Blink Expression

    The script is perfect. I have over a thousand events, each requires precise inputs (from data) but I can make the segStart and segEnd the same for each single data entry / event (but obviously not for the entire set of data together). So every one of the 1000+ entries is unique. However for every one, individually, the segStart and segEnd can be the same (or for some variation, as I have it now, there’s a 0.1 difference. This is the version I’m using (below). Thanks.

    ps. so the combination for each data point is different i.e. minSeg, maxSeg blinkDur and fadeTime are always different from the previous data point. BUT within each dat point I can have the same minStart and maxEnd.

    minSeg = 2.0;
    maxSeg = 5.0;
    blinkDur = .25;
    fadeTime = .1;

    seedRandom(index,true)
    segStartTime = -random(minSeg,maxSeg);
    segEndTime = segStartTime;
    i = 1;

    while (time >= segEndTime){
    i += 1;
    seedRandom(i,true);
    segStartTime = segEndTime;
    segEndTime = segEndTime + random(minSeg,maxSeg);
    }

    if (time < segStartTime + blinkDur/2)
    easeOut(time,segStartTime,segStartTime+fadeTime,0,100)
    else
    easeIn(time,segStartTime+blinkDur-fadeTime,segStartTime+blinkDur,100,0)

  • RP Koop

    May 26, 2023 at 10:12 pm in reply to: Eye-Blink Expression

    Hi Dan

    This is a great script.

    Question is, can I attach a sound to each ‘flash’ generated. Do you think its possible using your script? I have the sounds all ready to go in AE; just daunted by locating and inserting them in the timeline to coincide with the script. The timing of each flash is simple, meaning they occur regularly: i.e. minSeg and maxSeg are the same. So what do you think?

Page 2 of 2

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