REPLACE BY INDEX

Replaces a single curve within a collection at a specified zero-based index with a new curve. Use this worker when you need to swap out one curve in a group without rebuilding the entire collection.

When to use

Classification: process.

Tagged: curve_group, index, replace, swap, zero-based.

Inputs

Label ID Type Default Required Description
Curves curves vector   The input collection of curves (curve group) in which one entry will be replaced; accepts multiple curves; zero-based indexing applies.
Curve Index index integer 0   Zero-based integer index identifying which curve in the collection to replace; defaults to 0 (the first curve).
Curve To Replace curveto_replace vector   The new curve that will be inserted at the specified index, overwriting the existing curve at that position.

Outputs

Label ID Type Description
curves_removebyindex_output_1 curves_removebyindex_output_1 vector The updated curve group with the curve at the specified index replaced by the supplied replacement curve; same size as the input collection.

Disciplines

  • data.curve.pair

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curves_replacebyindex


Auto-generated from transformation schema. Worker id: curves_replacebyindex. Schema hash: 471b6401c619. Hand-curated docs in workerexamples/ override this page when present.