Create strange attractor
create_strange_attractorIntegrates ODE systems (Lorenz, Aizawa, Halvorsen) to create a strange-attractor geometry. Maintains a ring buffer of trail points, converts to polyline, thickens with Tube SOP for rendering, and returns controls summary.
Instructions
Build a strange-attractor deferred geometry generator: a Script CHOP integrates a chosen ODE system (Lorenz / Aizawa / Halvorsen) with configurable sub-steps and maintains a rolling ring buffer of trail_length points. A Script SOP converts the channels into one open polyline; an optional Tube SOP thickens it for shaded render inside a Geometry COMP + Camera + Light + Render TOP pipeline. Closing Roadmap Milestone 4. Complements create_growth_system (L-systems) and create_particle_flock (boids) as the deterministic CPU-geometry idiom. With TD timeline paused the integrator pauses too (time-dependent) — resume playback to continue. Returns a summary plus a JSON block with the container path, output path, exposed controls, errors, warnings, and an inline preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Container baseCOMP name. | strange_attractor |
| parent | No | Parent network where the container is created. | /project1 |
| attractor | No | ODE system to integrate: lorenz (classic butterfly), aizawa, or halvorsen. | lorenz |
| trail_length | No | Points retained in the rolling ring buffer. Higher = longer ribbon, costlier SOP cook. | |
| steps_per_frame | No | RK-style integration sub-steps per cook frame (controls speed and smoothness). | |
| dt | No | Integrator time step. Smaller = smoother but slower trajectory. | |
| seed | No | Initial state [x, y, z]. A tiny non-zero offset avoids the Lorenz fixed-point stall at the origin. | |
| params | No | Override ODE constants. Lorenz: sigma, rho, beta. Aizawa: a, b, c, d, e, f. Halvorsen: a. Unknown keys are ignored. | |
| thickness | No | Tube SOP radius. Set to 0 to render the raw polyline (no Tube SOP — lighter on GPU). | |
| color | No | Constant MAT colour (RGB, 0..1). | |
| bg_color | No | Render TOP background colour (RGB, 0..1). | |
| auto_frame | No | Auto-position camera based on attractor bounding radius (deterministic; no live bound query). | |
| expose_controls | No | Expose StepsPerFrame / Dt / TrailLength / Thickness as custom parameters on the container. |