Skip to main content
Version: 5.x

Nodes > Functions > Sample > Curve Sample

Curve Sample

Returns the value of a Curve Object at the given Sample Point.

The Sample Point determines where the value is retrieved from the input curve asset.

For a keyframe at (x, y), x = Sample Point, y = value.

Inputs​

NameTypeDescription
CurveCURVE_OBJECTCurve Object to sample.
Sample PointfloatCoordinate to sample the curve at.

Outputs​

NameTypeDescription
OutputfloatSampled value of the curve.

Properties​

NameTypeDescription
Wrap ModedropdownWrap mode determines how the curve behaves when the sample point is animated or falls outside the range of the curve track.
  • Clamp : The animation runs through only once. If the sample point is outside the range, it returns a value of 0.0.
  • Mirrored Repeat : Functions like a ping-pong animation, moving from the start to the end and then reversing back to the start.
  • Repeat : Value loops continuously, restarting from the beginning each time it reaches the end. Sample Mode | dropdown | Quick sample mode selection is VFX only.
  • Custom: Custom input where to sample the curve at.
  • Particle Age Ratio: Use particle age ratio as the sample point.
Was this page helpful?
Yes
No