Product media placeholder
Replace this area with a screenshot or short walkthrough video during the media sweep.
Sample-and-hold on rising-edge `pulse`. Captures the live `value` at the pulse moment and freezes it on `held`.
Type latchCategory inputsContext sharedDynamic ports noCompound no
Inputs
| Port | Type | Description |
|---|---|---|
value | float | Live signal being sampled. Whatever this reads at the moment `pulse` rises gets captured into `held`. |
pulse | float | Trigger. On rising edge (0 → >0), the current `value` is captured. While not pulsing, `held` keeps the previous capture. |
reset | float | On rising edge, restores `held` to the `initial` param. Use to clear the latch back to a known starting point. |
Outputs
| Port | Type | Description |
|---|---|---|
held | float | Most recently captured value (or `initial` before the first pulse). Stays constant between pulses. |
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
initial | float | 0 | Output value before the first pulse arrives, and after each `reset` rising edge. Example: 0 for "neutral until snapshotted", 0.5 for centered remapped progress. |
Use cases
- Snapshot at spawn — capture cursor X / Y / scroll position when a particle, flair, or trail item is born; downstream animation reads the held value as a fixed start point.
- Freeze a live signal — preserve "the value at the moment X happened" while the source keeps changing.
- Step-and-hold sample — the float counterpart of a sample-and-hold ADC, useful for stepped numeric outputs.
Related nodes
Envelope
Use latch as the node type inside a graph node envelope. Add id, optional params, optional connections, and optional activeWhen based on the guide context.
Generated source
Registry faster-motion-docs/node-registry.jsonCategory page /help/faster-motion/faster-motion-node-category-inputs/