Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Julian Sixx on January 3, 2007 at 6:48 pm

    Hi

    i have x numbers of layers.All layers should have either 0 or 100% opacity.
    I would like them to blink randomly and not all at the same time.
    When i use this expression =>
    period = .25;
    if (Math.floor(time/period)%2) 0 else 100

    they blink all at the same time.Yes i could change the value for every layer but i would like to automate this.
    Layer 1 starts to blink at frame 10,layer 2 after 1sec….

    Julian Sixx replied 19 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 3, 2007 at 7:03 pm

    Probably something like this:

    period = .25;
    maxStartTime = 1.0;

    seedRandom(index,true);
    t = time – random(maxStartTime);
    if (t > 0){
    if (Math.floor(t/period)%2) 0 else 100
    }else{
    100
    }

    Dan

  • Julian Sixx

    January 3, 2007 at 8:17 pm

    Hi

    Thank you Dan,it works 😉

  • Julian Sixx

    January 4, 2007 at 7:34 am

    Hi

    here is another way

    seedRandom(index,true);
    random(wiggle(1, 1, octaves = 3, amp_mult = 100,))

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