Skip to main content

Math Nodes

Math nodes shape numeric values into timing curves, masks and movement patterns.

This page lists 28 nodes.

Add

add

Adds two numbers.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Subtract

subtract

Subtracts B from A.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Multiply

multiply

Multiplies two numbers.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Safe Divide

divide

Divides A by B with zero protection.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Minimum

minimum

Returns the smaller number.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Maximum

maximum

Returns the larger number.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Power

power

Raises A to the power of B using safe bounds.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Modulo

modulo

Returns the safe remainder of A divided by B.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes0

Outputs

OutputType
valuefloat

Absolute

absolute

Returns the positive magnitude.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Negate

negate

Reverses the sign.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Floor

floor

Rounds downward.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Ceil

ceil

Rounds upward.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Fraction

fraction

Returns the fractional part.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Round

round

Rounds to the nearest whole number.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Sign

sign

Returns -1, 0 or 1.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Square Root

square-root

Returns a protected square root.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Exponential

exponential

Returns e raised to the input using safe bounds.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Logarithm

logarithm

Returns a protected natural logarithm.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Sine

sine

Returns the sine of the input.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Cosine

cosine

Returns the cosine of the input.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Triangle Wave

triangle-wave

Converts the input into a repeating triangle wave.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Ping Pong

ping-pong

Moves repeatedly between zero and one.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Clamp

clamp

Restricts a number between minimum and maximum.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0
minimumfloatYes0
maximumfloatYes1

Outputs

OutputType
valuefloat

Saturate

saturate

Clamps a number between zero and one.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0

Outputs

OutputType
valuefloat

Step

step

Returns zero below the edge and one above it.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
edgefloatYes0.5
valuefloatYes0

Outputs

OutputType
valuefloat

Smooth Step

smooth-step

Smoothly transitions between two edges.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
edge-afloatYes0
edge-bfloatYes1
valuefloatYes0

Outputs

OutputType
valuefloat

Mix Number

mix-number

Blends between two numbers.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
afloatYes0
bfloatYes1
amountfloatYes0.5

Outputs

OutputType
valuefloat

Remap

remap

Maps a value from one range into another.

PropertyValue
Stageshared
Performance costlow

Inputs

InputTypeRequiredDefault
valuefloatYes0
input-minfloatYes0
input-maxfloatYes1
output-minfloatYes0
output-maxfloatYes1

Outputs

OutputType
valuefloat