Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random layer visibility question

  • Random layer visibility question

    Posted by Sami Kaartinen on September 5, 2005 at 4:59 pm

    Hi All,

    I’m trying to randomize the visibility of layers. I want to create a animation from three pixelimage frames so that the frames appear randomly. I tried random expression to opacity but it fades the images instead of switching them on and off.

    Is there a way to either controll the position of a time indicator or switch layers on and off randomly so that at least one layer/frame is visible at the time.

    Now i have done it so that i make lot of copys of the three imageframes finder and rename those in random order and then import the images as ping sequence. This is very unconvinient and tiem consuming way to do it.

    I’m using AE 6.5 Pro in OXS

    All help is appreciated!

    Thanx,
    Maxx

    Tom Bassford replied 17 years, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Roland R. kahlenberg

    September 6, 2005 at 3:44 am

    See if the following Random Layer Thread works out for you.

    Cheers
    Roland Kahlenberg
    broadcastGEMs
    customizable animated backdrops with Adobe After Effects project files

  • Tom Bassford

    November 21, 2008 at 2:26 am
    holdTime = .5; //time to hold each position (seconds)
    seed = Math.floor(time/holdTime);
    seedRandom(seed,true);
    hmm = random(0,10);
    if (hmm >5){
    transform.opacity=100};
    else {transform.opacity=0};

    the following works 🙂

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