Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects basic expression help

  • basic expression help

    Posted by Jeremy Webb on September 29, 2006 at 10:04 pm

    i want to wiggle a layer randomly so i have been using wiggle(1,20) but i want it to stay between a min and max value. what’s the easiest way to do this for an expression novice.

    Julian Sixx replied 19 years, 7 months ago 3 Members · 2 Replies
  • 2 Replies
  • Roland R. kahlenberg

    September 30, 2006 at 1:19 am

    You should be using the random method and not wiggle. Wiggle works with the numbers that you put into the script in a relative manner. SInce you want absolute numbers, use the random method.

    To affect opacity so that it kicks in randomly between values of 10 to 80, the script would be like this –
    random(10,80)
    For random position points between the vertices (0,0) and (40,50), the script is –
    random([0,0],[40,50])

    If you wanted to have the randomness occur in intervals then precomp it and set the precomp so that it’s frame rate reflects the intervals. Ensure that you jump into the composition’s settings menu, under the advanced tab and check the Maintain Framerate … option.

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

  • Julian Sixx

    September 30, 2006 at 9:52 am

    Hi
    wouldn’t an expression like this do the trick?

    //start expression
    minwig=5;
    maxwig=20;
    amp=random(minwig,maxwig);
    freq=5;
    wiggle(freq,amp)
    //end expression

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