Nature node
lsystem
Generic L-system with a 3D turtle (Y up, starts at origin heading +Y). Symbols: F/G draw forward, f move without drawing, + - yaw (left/right), & ^ pitch (down/up), \ / roll, | turn around, [ ] push/pop state, ! shrink width, L leaf; other letters are placeholders for rules. Output: open polylines (with point attrib 'width' and prim attrib 'depth') or tube meshes (material 'bark', leaves material 'leaf').
Inputs
None: this node generates geometry from its parameters.
Parameters 15
axiomstringStart string.
ruleslistProduction rules 'A=replacement' (also 'A->...'). Classic examples: fractal plant X=F+[[X]-X]-F[-FX]+X, F=FF (angle 25); bush F=FF+[+F-F-F]-[-F+F+F] (axiom F, angle 22.5); 3D tree A=[&FL!A]/////[&FL!A]///////[&FL!A], F=S/////F, S=FL (axiom A, angle 22.5).
iterationsintRewriting generations (string grows exponentially; keep <= 6 for branching rules).
anglefloatTurn angle in degrees for + - & ^ \ /.
stepfloatForward step length for F/G/f.
step_scalefloatStep multiplier applied at every '[' (smaller twigs).
angle_jitterfloatRandom angle variation in degrees (organic look).
outputmenupolylines = open curves (one per unbroken stroke); tubes = closed tapered tube meshes.
radiusfloatTube radius at the root (tubes).
width_scalefloatRadius multiplier at '[' and '!' (thinner branches).
sidesintTube sides.
leavestogglePut a leaf card at every 'L' symbol (or at stroke ends if no L).
seedintSeed for angle_jitter.
translatevector 3Position of the generated asset
rotate_yfloatRotation around Y in degrees
Use it
Add it from the node menu (right-click empty graph space or Tab, then type lsystem), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"lsystem","name":"my_lsystem","params":{},"inputs":[]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.