Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scale expression trouble

  • Scale expression trouble

    Posted by Michael Roderick on October 30, 2007 at 6:42 pm

    I am trying to get a layer to scale like a drum hit randomly through out my comp.

    I am using this expression for the drum look:

    veloc = 35;
    amplitude =60;
    decay = 10;
    y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
    value + [0,y]

    I am just not sure where or how to add an expression to make this happen randomly over time.

    Another thing I am have some trouble with is how can I setup a expression on the scale as well so the scale picks a random number between like 3-8% and sticks to, doesnt change.

    Any help would be GREATLY appeciated.

    Thanks in advance

    michael

    Julian Sixx replied 18 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Julian Sixx

    October 31, 2007 at 4:05 am

    Hi
    [michaelvfx] “Another thing I am have some trouble with is how can I setup a expression on the scale as well so the scale picks a random number between like 3-8% and sticks to, doesnt change.”

    seed=Math.floor(time/1);
    seedRandom(seed, true);
    value+random(3,8)
    // every second the scale value changes randomly between 3+8

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