Set spline points
spline_setReplace control points for spline, sweep, point-shape, or lattice nodes in an IlluGen project file, overwriting existing points; optional edges define branching.
Instructions
Replaces the control points of a spline, sweep, point-shape or lattice node.
Points are chained in order unless `edges` is given. The previous points are discarded. Fails if the node has
no spline or lattice points. Writes the project file in place.
Returns: points (number written) and edges (number of segments, when applicable).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the .illugen project file. | |
| edges | No | Optional explicit segments [[i, j], ...] between point indexes, for branching shapes. Overrides the default chaining. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| closed | No | Connect the last point back to the first (closed shape). | |
| points | Yes | Control points in order: [x, y, z] in scene units for Grayscale_Spline, Geometry_Sweep and Geometry_Points_Shape; [x, y] in 0..1 for Utils_Lattice. | |
| node_id | Yes | Node id as a string (from project_summary or node_add), or the node's label if it is unique. |