4

Table Of Contents
Chapter 31 Expressions and Scripting 941
Reference Tables for Functions, Variables, and Expressions
All of the math functions available in Shake can be found in the include/nreal.h file. You
can declare your own functions in your own .h file.
To set an expression on a string (text) parameter, you need to add a : (colon) at the
start of the expression; otherwise, it is treated as text rather than compiled and
evaluated.
The following table shows variables that are carried by each node.
Arithmetic Operators Definition
*Multiply
/Divide
+Add
- Subtract
Relational Operators Definition
<Less than
>Greater than
<= Less than or equal to
>= Greater than or equal to
== Equal to
!= Not equal to
Logical Operators Definition
&& And
|| Or
!Not
Conditional Expression Definition
expr1?expr2:expr3 If expr1 is true (non-zero), then to expr2, else do expr3.
Global Variables Definition
time Current frame number.
Image Variables Definition
parameterName Value of parameterName from inside of that node.
nodeName.parameterName Value of parameterName in nodeName from outside of that node.
parameterName@@time Allows you to access a value at a different frame. For example:
Blur1.xPixel@@(time-3) looks at the value from 3 frames earlier.