Wrangle

Advanced VEX interface. Emit attributes, define gates, or prototype effectors directly into the Natsura graph.

The Wrangle node provides a VEX interface into the procedural graph. It runs on active growth tips during simulation (not on static geometry) and is the primary way to create custom attributes for mappings, gates, and effectors. It can sample external Houdini geometry (SDFs, attributes) to guide growth. Attributes created here flow upstream to parent nodes and sockets: set f@my_bend in a Wrangle and you can use it in a Map connected to a Grow node's Pitch input.

Inputs

InputDescription
Input 0: GraphThe Natsura graph. Wrangle runs on the active tips.
Input 1: Skeleton (optional)The full simulated skeleton (if enabled). Useful for nearpoints() queries.
Input 2+: Geometry (optional)Standard Houdini geometry or volumes for environment sampling.

Attributes

Built-in attributes available for reading and writing:

AttributeDescription
idBuilt-in attribute available for reading and writing.
parent_idBuilt-in attribute available for reading and writing.
generationBuilt-in attribute available for reading and writing.
uBuilt-in attribute available for reading and writing.
ageBuilt-in attribute available for reading and writing.
widthBuilt-in attribute available for reading and writing.
internode_lengthBuilt-in attribute available for reading and writing.
PBuilt-in attribute available for reading and writing. Modifying it affects growth direction.
NBuilt-in attribute available for reading and writing. Modifying it affects growth direction.
upBuilt-in attribute available for reading and writing. Modifying it affects growth direction.

Custom attributes (f@density, i@kill, anything else) can be created and used downstream in Map or Switch.

Outputs

OutputDescription
Output: GraphThe modified graph.

Parameters

Attributes

ParameterDescription
Graph AttributesRegisters new attributes so they appear in Natsura's UI (dropdowns, inputs). Manages attributes available for use in custom growth logic.
AttributeName of the attribute being manipulated.
ValueValue assigned to the attribute.
Mapped AttributeReferences external mappings or relationships.

VEX Code

ParameterDescription
Graph SnippetThe VEX code to execute. Write VEX for dynamic evaluations, custom solvers, environmental responses, or attribute-driven adjustments.

Connections

ParameterDescription
Connect MainFeeds the simulation output back into Input 1 for self-queries. Toggle this for main graph connections.

Notes

  • Wrangle requires familiarity with VEX scripting to use well.
  • Runs within the solver loop on active growth tips, not as a standard SOP operation.
  • Attributes created here are available to upstream nodes via inputs and mappings.

See also: Simulation concept · Custom VEX · Map · Switch