618550
690
Zoom out
Zoom in
Previous page
1/761
Next page
684
Expressions and automation
Last updated 11/30/2015
dot(vec1, vec2) Return type: Number.
Argument type: vec1 and vec2 are Arrays.
Returns the dot (inner) product of the vector arguments.
cross(vec1, vec2) Return type: Array [2 or 3].
Argument type: vec1 and vec2 are Arrays [2 or 3].
Returns the vector cross product of vec1 and vec2. Refer to a math reference or JavaScript guide for more information.
normalize(vec) Return type: Array.
Argument type: vec is an Array.
Normalizes the vector so that its length is 1.0. Using the normalize method is a short way of performing the operation
div(vec, length(vec)).
length(vec) Return type: Number.
Argument type: vec is an Array.
Returns the length of vector vec.
length(point1, point2) Return type: Number.
Argument type: point1 and point2 are Arrays.
Returns the distance between two points. The point2 argument is optional. For example, length(point1, point2) is the
same as length(sub(point1, point2)).
For example, add this expression to the Focus Distance property of a camera to lock the focal plane to the camera's point
of interest so that the point of interest is in focus:
length(position, pointOfInterest)
lookAt(fromPoint, atPoint) Return type: Array [3].
Argument type: fromPoint and atPoint are Arrays [3].
The argument fromPoint is the location in world space of the layer you want to orient. The argument atPoint is the point
in world space you want to point the layer at. The return value can be used as an expression for the Orientation property,
making the z axis of the layer point at atPoint. This method is especially useful for cameras and lights. If you use this
expression on a camera, turn off auto-orientation. For example, this expression on the Orientation property of a spot
light makes the light point at the anchor point of layer number 1 in the same composition: lookAt(position,
thisComp.layer(1).position)
Random Numbers methods (expression reference)
Note: The wiggle method—which is used to randomly vary a property value—is in the Property attributes and methods
category. (See
Property attributes and methods (expression reference).)
seedRandom(offset, timeless=false) Return type: none.
Argument type: offset is a Number, timeless is a Boolean.
The random and gaussRandom methods use a seed value that controls the sequence of numbers. By default, the seed
is computed as a function of a unique layer identifier, the property within the layer, the current time, and an offset value
of 0. Call seedRandom to set the offset to something other than 0 to create a different random sequence.
690

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