View & accessibility
Thumbnails
Motion
Bforartists
5.1
Editors

Add Menu - Utilities - Math

Utility nodes are mainly for mathematical operations.

8
 min read
Up to date for 
5.1
draft

Add menu - Utilities - Math

Add menu - Utilities - Math
Add menu - Utilities - Math

Utility nodes are mainly for mathematical operations.

Bit Math

Bit Math

Performs a bit math operation between its inputs.

Inputs

The inputs depends of the chosen method.

Properties

Operation
Operation
EntryWhat it does
AndReturns a value where the bits of A and B are both set.
OrReturns a value where the bits of either A or B are set.
Exclusive OrReturns a value where only one bit of A and B is set.
NotReturns the opposite bit value of A, in decimal it is equivalent of A = -A -1
ShiftShifts the bit values of A by the specified Shift amount. Positive values shift left, negative values shift right.
RotateRotates the bit values of A by the specified Shift amount. Positive values rotates left, negative values rotates right.

Output

Boolean

Standard Boolean output.

Boolean Math

Boolean Math

The Boolean Math node performs a basic logical operation between its inputs.

Inputs

Boolean

Two standard Boolean inputs.

Properties

Operation
Operation
EntryWhat it does
AndTrue if both inputs are true.
OrTrue if either or both inputs are true.
NotTrue if both inputs are false.
Not And (NAND)True when at least one input is false.
Nor (NOR)True when both inputs are false.
Equal (XNOR)True when both inputs are equal.
Not Equal (XOR)True when both inputs are different.
Imply (IMPLY)True unless the first input is true and the second is false.
Subtract (NIMPLY)True when the first input is true and the second is false.

Output

Boolean

Standard Boolean output.

Integer Math

Integer Math

The Boolean Math node provides mathematical operations with integers.

Inputs

Value

Two standard value inputs.

Properties

Functions
Functions

The available mathematical functions to manipulate the input integers.

Output

Value

The value output.

Clamp

Clamp

Clamps a value between a minimum and a maximum.

Inputs

EntryWhat it does
ValueThe input value to be clamped.
MinThe minimum value.
MaxThe maximum value.

Properties

Clamp Type
Clamp Type
EntryWhat it does
Min MaxClamp values using Min and Max values.
RangeClamp values between Min and Max range.

Outputs

Result

The input value after clamping.

Compare

Compare

The Compare node takes two inputs and does a math comparison between them.

Inputs

A, B

Standard float value input.

Properties

Input Type
Input Type

What kind of data to compare.

Operation
Operation
EntryWhat it does
A is less than BTrue if A is smaller than B.
A is lesser than or equal BTrue if A is smaller or equal than B.
A is greater than BTrue if A is bigger than B.
A is greater than or equal BTrue if A is bigger or equal than B.
A is equal BTrue if A and B are the same.
A is not equal BTrue if A and B are different.

Output

Result

Standard Boolean output.

Float Curve

Float Curve

The Float Curve node maps an input float to a curve and outputs a float value. This curve can then be used for profiles for example.

Inputs

EntryWhat it does
FactorHow strong the input influences the output value.
AttributeThe input value.

Properties

Curve Field
Channel buttons
Channel buttons

Clicking on one of the channels displays the curve for each.

C (Combined RGB), R (Red), G (Green), B (Blue).

Navigation elements

They are described from left to right.

Zoom in and out

The two buttons with the magnifying glass at it zooms in and out in the curve window.

Clipping Options

Clipping Options

Clipping options. Set up clipping for the stroke.

Tools

Tools

Tools is a menu where you can find some curve related tools.

EntryWhat it does
Reset ViewResets the curve windows zoom.
Extend horizontalExtends the curve before the first curve point and behind the last curve point horizontally.
Extend extrapolatedExtends the curve before the first curve point and behind the last curve point extrapolated.
Reset CurveResets the curve to the initial shape.
Curve edit field

Create and tweak a Bezier curve that varies the input levels (X axis) to produce an output level (Y axis).

Selecting Points

Selecting Points

You can select curve points. This reveals two edit boxes for the x and y coordinate of this point.

Selected points can be moved around. Left click at them, hold the mouse button down and move them to a new location.

Adding Points

Adding Points

You can add new curve points by simply left clicking at the curve. Move the mouse to position them where you need it.

Curve point settings

Curve point settings

When you have a point selected then you will reveal further settings at the bottom.

EntryWhat it does
Vector HandleSet handle type to Vector.
Auto HandleSet handle type to Auto.
Auto Clamped HandleSet handle type to Auto Clamped.

Output

Value

The output value.

Float to Integer

Float to Integer

Converts a floating point value into an integer value.

Inputs

Float

The input float value.

Properties

Rounding Mode
Rounding Mode

How the float value should be converted.

Outputs

Integer

The output integer value.

Hash Value

Hash Value

The hash value converts a value input into a hashed value.

Note that Hashes cannot be relied upon to be used as unique identifiers because they are not guaranteed to be unique. It can be used to generate somewhat stable randomness especially in cases where White Noise does not offer enough flexibility.

Input

EntryWhat it does
ValueThe input value.
SeedA seed to randomize the value.

Properties

Properties
Data Type

What data type to create.

Output

Hash

The hash value output.

Map Range

Map Range

This node converts (maps) an input value range into a destination range. By default, values outside the specified input range will be proportionally mapped as well. This node is similar to Map Value node but provides a more intuitive way to specify the desired output range.

Inputs

EntryWhat it does
ValueStandard value input.
From MinStart of the input value range.
From MaxEnd of the input value range.
To MinStartof the destination range.
To MaxEnd of the destination range.

Properties

Data Type
Data Type

The data type to calculate.

Interpolation Type
Interpolation Type

how to interpolate the values between min and max.

Clamp

Clamps values to Min/Max of the destination range.

Outputs

Value

Standard value output.

Math

Math

The Math Node performs math operations.

Inputs

The inputs of the node are dynamic. Some inputs are only available with certain operations. For example, the Addend input is only available in the Multiply Add operator.

EntryWhat it does
ValueInput Value. Trigonometric functions read this value as radians.
AddendInput Addend.
BaseInput Base.
ExponentInput Exponent.
EpsilonInput Epsilon.
DistanceInput Distance.
MinInput Minimum.
MaxInput Maximum.
IncrementInput Increment.
ScaleInput Scale.
DegreesInput Degrees.
RadiansInput Radians.

Properties

Operation
Operation

The mathematical operator to be applied to the input values:

EntryWhat it does
FunctionsAdd: The sum of the two values. · Subtract: The difference between the two values. · Multiply: The product of the two values. · Divide: The division of the first value by the second value. · Multiply Add: The sum of the product of the two values with Addend.
PowerThe Base raised to the power of Exponent. · Logarithm: The log of the value with a Base as its base. · Square Root: The square root of the value. · Inverse Square Root: One divided by the square root of the value. · Absolute: The input value is read with without regard to its sign. This turns negative values into positive values. · Exponent: Raises Euler’s number to the power of the value.
ComparisonMinimum: Outputs the smallest of the input values. · Maximum: Outputs the largest of two input values. · Less Than: Outputs 1.0 if the first value is smaller than the second value. Otherwise the output is 0.0. · Greater Than: Outputs 1.0 if the first value is larger than the second value. Otherwise the output is 0.0. · Sign: Extracts the sign of the input value. All positive numbers will output 1.0. All negative numbers will output -1.0. And 0.0 will output 0.0. · Compare: Outputs 1.0 if the difference between the two input values is less than or equal to Epsilon. · Smooth Minimum: Smooth Minimum. · Smooth Maximum: Smooth Maximum.
Rounding
EntryWhat it does
RoundRound the input value to the nearest integer.
FloorRounds the input value down to the nearest integer.
CeilRounds the input value up to the nearest integer.
TruncateOutputs the integer part of the value.
FractionFraction.
ModuloOutputs the remainder once the first value is divided by the second value.
WrapOutputs a value between Min and Max based on the absolute difference between the input value and the nearest integer multiple of Max less than the value.
SnapRound the input value to down to the nearest integer multiple of Increment.
Ping-pongThe output value is moved between 0.0 and the Scale based on the input value.
Trigonometric
EntryWhat it does
SineThe Sine of the input value.
CosineThe Cosine of the input value.
TangentThe Tangent of the input value.
ArcsineThe Arcsine of the input value.
ArccosineThe Arccosine of the input value.
ArctangentThe Arctangent of the input value.
Arctan2Outputs the Inverse Tangent of the first value divided by the second value measured in radians.
Hyperbolic SineThe Hyperbolic Sine of the input value.
Hyperbolic CosineThe Hyperbolic Cosine of the input value.
Hyperbolic TangentThe Hyperbolic Tangent of the input value.
Conversion
EntryWhat it does
To RadiansConverts the input from degrees to radians.
To DegreesConverts the input from radians to degrees.
ClampLimits the output to the range (0.0 to 1.0). See Clamp.

Outputs

Value

Numerical value output.

Mix

Mix

Allows to mix values and vectors in various ways. The node has three different modes. Float, Vector and Color. This node covers the Float mode

Input

Input
Float
EntryWhat it does
FactorThe mix factor.
AFloat value A input.
BFloat value B input.

Properties

Properties
Data Type

The data type to calculate.

Output

Result

The output value or vector.