Repository navigation
Export Nodes SourceIOFlexMathNode
REDxEYE edited this page Nov 20, 2026
·
1 revision
Category: Flex rules · Node ID: SourceIOFlexMathNode

Combines two flex values with one arithmetic operation and outputs the combined expression.
| Socket | Type | Multi-input | Description |
|---|---|---|---|
| A | Flex expression | No (one link, required) | First operand: a controller Value, constant or expression node output. |
| B | Flex expression | No (one link, required) | Second operand. |
| Socket | Type | Description |
|---|---|---|
| Value | Flex expression | The combined expression. |
| Control | Generated expression |
|---|---|
| Operation = Add | (A + B) |
| Subtract | (A - B) |
| Multiply | (A * B) |
| Divide | (A / B) |
| Minimum | min(A, B) |
| Maximum | max(A, B) |
A and B are the operand expressions (controller names, numbers or nested expressions), so nodes can be chained. Expressions only support + - * /, unary minus/plus, parentheses and min/max (see Flex raw expression).
smile_amount * (1.0 - blink): Flex invert on controller blink → B; controller smile_amount → A; operation Multiply; Value → a Shape flex rule.
- Both inputs are required; a missing link fails the export with "A is required" / "B is required".
- Division is exported as written: dividing by an expression that can reach 0 is not guarded.
- The result must stay within what the engine expects (typically 0..1 for a shape weight). Add a Flex clamp if an operation can leave that range.
- Any controller used must also be linked to the collector's Controllers input.
Back to Export Nodes