Notch Notch
Manual 1.0 Manual 0.9.23
 Light | Dark
Expression

Expression

Updated: 8 Apr 2024

Evaluates an expression using input modifier values.

Method #

This node evaluates an expression and outputs its value. The node can have up to four input values.

Available functions #

Symbol Description
Sin Sine
Cos Cosine
Tan Tangent
ASin Inverse Sine
ACos Inverse Cosine
ATan Inverse Tangent
Sqrt Square Root
Log Logarithm
Log10 Logarithm Base 10
Exp Exponential
Abs Absolute
Factorial Factorial

Available operators #

Symbol Description
+ Add
- Subtract
* Multiply
/ Divide
^ Power
% Modulus
() Bracket
All trigonometry functions use radians, not degrees.

Example expressions #

Value0 * Value1
(Value0 + Value1) / Value2
(Value0 / Value1) ^ 2
Value0 * Sin(Value1) + Exp(Value2)
Factorial(Value0)
// Converts radians to degrees
Value0 * (3.14159265 / 180)

The output is a numeric value that can be further processed with other modifiers, or directly connected to a parameter in another node, using the operation method selected.

Parameters

These properties control the core behaviours of the node.

ParameterDetails
Current Value Shows the resulting value of the expression. Cannot be directly changed.
Expression The text expression (see Example expressions above)
Value0 Values to be used in expression
Value1 Values to be used in expression
Value2 Values to be used in expression
Value4 Values to be used in expression
Modifier Operation The operation to be performed on the targeted parameter.
  • Add : Adds to the parameter value.
  • Subtract : Subtracts from the parameter value.
  • Multiply : Multiplies the parameter value.
  • Replace : Replaces the parameter value.

The properties control the time at which the node is active. See Timeline for editing time segments.

ParameterDetails
Duration Control the duration of the node’s time segment.
  • Composition Duration : Use the length of the composition for the node’s time segment duration.
  • Custom : Set a custom duration for the node’s time segment.
Node Time The custom start and end time for the node.
Duration (Timecode) The length of the node’s time segment (in time).
Duration (Frames) The length of the node’s time segment (in frames).
Time Segment Enabled Set whether the node’s time segment is enabled or not in the Timeline.