Skip to content

Sample Array from Float Curve

What It Does

Evaluates a float curve at multiple X positions and returns an array of the corresponding Y values. This allows you to generate sequences of values based on a curve's shape.

Inputs

NameDescriptionTypeRequired
curveThe float curve to sampleFloat CurveYes
samplePointsArray of X positions (0-1) to sampleListYes
precisionNumber of decimal places for the resultsNumberNo

Outputs

NameDescriptionType
valuesArray of Y values sampled from the curveList

How to Use It

  1. Drag the Sample Array from Float Curve node into your graph.
  2. Connect a float curve to the "curve" input.
  3. Connect an array of X positions (between 0 and 1) to the "samplePoints" input.
  4. Optionally set the "precision" input to control decimal places (default is 2).

Tips

  • All X values must be between 0 and 1, representing normalized positions along the curve.
  • Higher precision values will give more accurate results but might be unnecessary for most design applications.

See Also

  • Sample Float Curve: For sampling a single point on a curve.
  • Construct Float Curve: For creating custom curves to sample.

Use Cases

  • Animation Keyframes: Generate multiple animation steps from a single easing curve.
  • Data Visualization: Create smooth distributions of values based on a curve shape.
  • Design Scales: Build graduated scales for spacing, sizing, or opacity based on a mathematical curve.