Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions flicker 3d light expression

  • flicker 3d light expression

    Posted by Paul Nevison on May 24, 2007 at 12:36 pm

    hey i want to randomise the intensity of a light in my comp. can someone suggest an expression to do this..wiggle perhaps.

    new to expressions so sorry to ask something that is probably really basic.

    thanks

    G5 DP 2.0 (Power PC)
    4.0G RAM
    OS 10.4.8
    QT 7.1.3
    FCP 5.1.2
    BMD Decklink Extreme 6.0
    PAL Land

    Selwyn Storer replied 16 years, 1 month ago 3 Members · 4 Replies
  • 4 Replies
  • Lord Scales

    May 24, 2007 at 2:23 pm

    Try this, written by Dan Ebberts:

    segMin = 1.0; //minimum segment duration
    segMax = 1.5; //maximum segment duration
    flickerDurMin = .5;
    flickerDurMax = .8;

    end = 0;
    j = 0;
    while ( time >= end){
    j += 1;
    seedRandom(j,true);
    start = end;
    end += random(segMin,segMax);
    }
    flickerDur = random(flickerDurMin,flickerDurMax);
    if (time > end – flickerDur){
    seedRandom(1,false);
    random(100);
    }else{
    100
    }

  • Paul Nevison

    May 24, 2007 at 6:59 pm

    thanks for that

    do i cut and paste after alt clicking the stopwatch for the intensity property?

    G5 DP 2.0 (Power PC)
    4.0G RAM
    OS 10.4.8
    QT 7.1.3
    FCP 5.1.2
    BMD Decklink Extreme 6.0
    PAL Land

  • Lord Scales

    May 24, 2007 at 7:20 pm

    Yes

  • Selwyn Storer

    March 19, 2010 at 8:49 am

    What do i need to change in this expression to make the light intensity to flicker like candle light?
    Thank you

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