618550
691
Zoom out
Zoom in
Previous page
1/761
Next page
685
Expressions and automation
Last updated 11/30/2015
Use true for the timeless argument to not use the current time as input to the random seed. Using true for the timeless
argument allows you to generate a random number that doesn’t vary depending on the time of evaluation.
The offset value, but not the timeless value, is also used to control the initial value of the wiggle function.
For example, this expression on the Opacity property sets the Opacity value to a random value that does not vary with
time:
seedRandom(123456, true); random()*100
The multiplication by 100 in this example converts the value in the range 0–1 returned by the random method into a
number in the range 0–100; this range is more typically useful for the Opacity property, which has values from 0% to
100%.
random() Return type: Number.
Returns a random number in the range 0–1.
In After Effects CC and CS6, the behavior of random() is changed to be more random when layer ids are close together.
The wiggle() expression is not affected.
random(maxValOrArray) Return type: Number or Array.
Argument type: maxValOrArray is a Number or Array.
If maxValOrArray is a Number, this method returns a number in the range from 0 to maxValOrArray. If
maxValOrArray is an Array, this method returns an Array with the same dimension as maxValOrArray, with each
component ranging from 0 to the corresponding component of maxValOrArray.
random(minValOrArray, maxValOrArray) Return type: Number or Array.
Argument type: minValOrArray and maxValOrArray are Numbers or Arrays.
If minValOrArray and maxValOrArray are Numbers, this method returns a number in the range from minValOrArray
to maxValOrArray. If the arguments are Arrays, this method returns an Array with the same dimension as the
argument with the greater dimension, with each component in the range from the corresponding component of
minValOrArray to the corresponding component of maxValOrArray. For example, the expression random([100, 200],
[300, 400]) returns an Array whose first value is in the range 100–300 and whose second value is in the range 200–400.
If the dimensions of the two input Arrays don’t match, higher-dimension values of the shorter Array are filled out with
zeros.
gaussRandom() Return type: Number.
Returns a random number. The results have a Gaussian (bell-shaped) distribution. Approximately 90% of the results
are in the range 0–1, and the remaining 10% are outside this range.
gaussRandom(maxValOrArray) Return type: Number or Array.
Argument type: maxValOrArray is a Number or Array.
When maxValOrArray is a Number, this method returns a random number. Approximately 90% of the results are in
the 0 to maxValOrArray range, and the remaining 10% are outside this range. When maxValOrArray is an Array, this
method returns an Array of random values, with the same dimension as maxValOrArray. 90% of the values are in the
range from 0 to maxValOrArray, and the remaining 10% are outside this range. The results have a Gaussian (bell-
shaped) distribution.
gaussRandom(minValOrArray, maxValOrArray) Return type: Number or Array.
Argument type: minValOrArray and maxValOrArray are Numbers or Arrays.
691

Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Adobe After Effects CC - 2015 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Adobe After Effects CC - 2015 in the language / languages: English as an attachment in your email.

The manual is 25,13 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Adobe After Effects CC - 2015

Adobe After Effects CC - 2015 User Manual - German - 845 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info