Natsura Map If
Conditional mapping node. Applies a map chain only if a condition is met.
The Map If node applies a mapping chain conditionally.
- Gating: Checks a condition (Attribute vs Value/Attribute/Map).
- Selective Application: If the condition is true, the connected "True" map chain is applied. Otherwise, it passes the input value unchanged (or applies a "False" chain).
== Concept ==
=== Non-Linear Mapping ===
Standard Maps are linear. Map If introduces branching logic into your parameter controls. Use it to apply specific effects only to certain parts of the plant (e.g., "Add noise to Pitch only if Height > 5").
Inputs
Previous Map: The incoming value stream.
True Map: The map chain to apply if the condition is met.
False Map (Optional): The map chain to apply if the condition is NOT met.
Parameters
Condition
Attribute : The attribute to test against the threshold.
Operator
: Comparison type: Greater Than (>), Less Than (<), or Equal (==).
Threshold : Value to compare the attribute against.
Related
- Map Node — The basic mapping node for linking growth parameters to attributes.
- Map Blend Node — Blends two map chains smoothly instead of hard switching.
- Grow Node — Incrementally creates plant structures by defining the size, shape, and direction of individual branches.
@workflow
== Workflow ==
- Start a map chain.
- Insert a Map If node.
- Create a separate map chain for your "special effect" (e.g., high turbulence).
- Connect it to the True Map input of Map If.
- Set the condition (e.g.,
age > 3).
@notes
- Consumes attributes for the condition check.
- When no False Map is connected, the input value passes through unchanged if the condition is not met.