1. Home
  2. Docs
  3. PopcornFX v2
  4. Concepts
  5. Samplers
  6. Curve sampler

Curve sampler

The curve sampler allows you to sample a custom curve of 1, 2, 3, or 4 dimensions:

Curve sampler

Curves contain values in a [0;1] range (see curve editor), and can be sampled with a cursor in that range. Sampling the curve a cursor at 0.5 will return the value at that position.


Editing a 2D curve

 

Curve samplers are most commonly used with the following templates:

  • CurverOverTime
  • CurveSample

 

Some effects might still reference the “Legacy_Field” template, but we recommend not to use it anymore, as it won’t be maintained.

Note: To edit color curves, we plan to have an improved color editor in PopcornFX v2.2 instead of the default curve editor.

Was this article helpful to you? Yes No

How can we help?