.. _auto_curve_get_value_by_index: *GET THE VALUE BY INDEX* ======================== Retrieves a single scalar value (X or Y) from a curve at a specified integer index position. Use this worker when you need to extract a point value from a curve by its positional index rather than by an X-axis lookup. When to use ----------- Classification: **process**. Tagged: ``curve``, ``extract``, ``get_value``, ``index``, ``lookup``, ``scalar``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Curve To Be Looked Up - curvetobelookedup - vector - — - - The input curve (X/Y vector) from which a value will be retrieved by index. * - Index Number - index_number - scalar - 0.0 - - Zero-based integer index of the point to retrieve from the curve; defaults to 0 (the first point). * - Return Type - return_type - scalar - y - - Axis component to return at the specified index: 'x' for the X-coordinate or 'y' for the Y-coordinate; defaults to 'y'. * - Not Found Value - not_found_value - scalar - 0.0 - - Fallback scalar value returned when the specified index does not exist in the curve; defaults to 0.0. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - curve_get_value_by_index_output_1 - curve_get_value_by_index_output_1 - scalar - Scalar X or Y value extracted from the curve at the specified index, or the not_found_value if the index is out of range. Disciplines ----------- - data.curve.transform Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=curve_get_value_by_index `_ .. raw:: html

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