Skip to main content
Documentation
Node Editor

Arithmetic Nodes

Basic mathematical operations for numeric calculations including addition, subtraction, multiplication, and division.

Basic mathematical operations for numeric calculations including addition, subtraction, multiplication, and division.

This category contains 14 nodes.

Nodes

Add

Adds two numbers.

Inputs: Two numbers to add.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: The sum.

NameTypeRange
NumberNumberany

Add Color

Combines two colors by adding them together. Useful for layering light effects.

Inputs: Two colors to combine.

NameTypeRangeDefault
Color 1Colorcolor[0, 0, 0, 0, 0, 0]
Color 2Colorcolor[0, 0, 0, 0, 0, 0]

Outputs: Combined color (channels add together).

NameTypeRange
ColorColorcolor

Add Vectors

Adds two positions together. Use for offsets or combining movements.

Inputs: Two positions to add.

NameTypeRangeDefault
Vector AVectorvec[0, 0, 0]
Vector BVectorvec[0, 0, 0]

Outputs: Combined position.

NameTypeRange
VectorVectorvec

Divide

Divides A by B. Returns 0 if B is zero.

Inputs: A divided by B.

NameTypeRangeDefault
ANumberany0
BNumberany1

Outputs: The quotient.

NameTypeRange
NumberNumberany

Mix Color

Blends between two colors. At ratio 0 outputs Color 1, at ratio 1 outputs Color 2, in between outputs a smooth blend.

Inputs: Ratio controls the blend (0 to 1). Two colors to blend between.

NameTypeRangeDefault
RatioNumber0-10.5
Color 1Colorcolor[255, 0, 0, 0, 0, 0]
Color 2Colorcolor[0, 255, 0, 0, 0, 0]

Outputs: The blended color.

NameTypeRange
ColorColorcolor

Mix Number

Blends between two numbers. Ratio of 0 gives first value, 1 gives second, 0.5 gives halfway.

Inputs: Two values and blend ratio (0-1).

NameTypeRangeDefault
RatioNumber0-10.5
Value 1Numberany0
Value 2Numberany1

Outputs: Blended value.

NameTypeRange
ValueNumberany

Mix Vector

Blends between two positions. Ratio of 0 gives first, 1 gives second, 0.5 gives midpoint.

Inputs: Two positions and blend ratio (0-1).

NameTypeRangeDefault
RatioNumber0-10.5
Vector AVectorvec[0, 0, 0]
Vector BVectorvec[1, 1, 1]

Outputs: Blended position.

NameTypeRange
VectorVectorvec

Multiply

Multiplies two numbers.

Inputs: Two numbers to multiply.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: The product.

NameTypeRange
NumberNumberany

Multiply Vector

Scales a position by a number. Multiply by 2 to double, by 0.5 to halve.

Inputs: Position and scale factor.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]
ScalarNumberany0

Outputs: Scaled position.

NameTypeRange
VectorVectorvec

Power

Raises a number to a power. Use 2 for squaring, 0.5 for square root, etc.

Inputs: Base number and exponent.

NameTypeRangeDefault
BaseNumberany2
ExponentNumberany1

Outputs: Base raised to the exponent.

NameTypeRange
NumberNumberany

Power Vector

Raises each base component to its corresponding exponent. Independent power for each axis.

Inputs: Base values and exponents for each axis.

NameTypeRangeDefault
BaseVectorvec[2, 2, 2]
ExponentVectorvec[1, 1, 1]

Outputs: Vector with powered values.

NameTypeRange
VectorVectorvec

Remainder

Gets the leftover after division. 10 mod 3 gives 1. Great for creating repeating patterns.

Inputs: Number to divide and the divisor.

NameTypeRangeDefault
ANumberany0
BNumberany1

Outputs: Remainder after division.

NameTypeRange
NumberNumberany

Subtract

Subtracts B from A.

Inputs: A minus B.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: The difference.

NameTypeRange
NumberNumberany

Subtract Vector

Subtracts one position from another. Useful for finding direction or offset between points.

Inputs: Two positions (A minus B).

NameTypeRangeDefault
Vector AVectorvec[0, 0, 0]
Vector BVectorvec[0, 0, 0]

Outputs: Difference between positions.

NameTypeRange
VectorVectorvec