Reference > 

Expressions

 
 
 

Expressions are mathematical formulas that let you control any parameter that can be animated, such as translation, rotation, scaling, material, or texture. You can create almost any association between parameters, from simple A=B relationships to very complex ones using predefined variables, standard math functions, random number generators, and more.

An expression is a string of characters that may include object and parameter names, math operators, and tokens representing functions or constants. For example, to constrain object A's Y rotation to object B's X translation, you might set an expression on A.Transform.Rotation.Y consisting of the string B.Transform.Position.X

Expression strings refer to sockets by name. The sockets can be either input or output sockets. Expressions perform operations based on numerical values, therefore you do not access pixels in the context of expressions. However, you can still access numerical values of image attributes such as height and width.

Expressions are created by using the Expresso Calculator, which is an extension of the regular Calculators. To set an expression you need to access the calculator by right-clicking in the value field of a parameter.

The Expresso button is a toggle. Clicking it again collapses the Expresso Calculator.

Note If you display the regular calculator by using Alt + C, then the Expresso button is inactive. The Expresso button only toggles if you first prompt the Expresso Calculator.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License