Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Ranomize The End

  • Posted by Josh Holdens on June 10, 2014 at 1:40 am

    I’ve preformed a search and if this has already been addressed, it would be greatly appreciated if I could be pointed in the direction. What I’m attempting to do is randomize the end of a given animation. For instance if I have opacity 0-100 when I duplicate the layer, the duplicate could be 90, 98, 73, etc…. I thought i could do this with an if statement, but the way that I implemented it failed so after some thought I gave the linear expression which got me close but I would still like to maintain the ability to keyframe the parameter.
    So is it possible, am I on the right track, where did I go wrong?

    Linear expression:
    linear(time,1,2,100,(75,95)

    if/else statement:
    x = transform.opacity;

    if (x == 100){

    seedRandom(45,true)
    random(25,85)
    }else{
    value
    }

    Josh Holdens replied 11 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 10, 2014 at 3:19 am

    You might be looking for something like this:


    if (numKeys > 1){
    seedRandom(index,true);
    v2 = random(25,95);
    linear(time,key(1).time,key(2).time,key(1).value,v2);
    }else
    value

    Dan

  • Josh Holdens

    June 10, 2014 at 12:26 pm

    Genius! superb, this is so awesome and works great.

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