Store Value

From RealMotion Wiki

Logic/Animation/Store Value

Stores a value upon reception of an event. ​

Description

The Store Value box stores a value and prevents changes to the value until reception of the next event.

Currently the parameters have multiple purpose depending on the Store Mode chosen:
- Trigger mode: freezes the Output when an Event is received for the Freeze Time duration.
- Continuous mode : outputs the current Value continuously until further Event. By default, outputs the Reset Value.
- Reset mode : outputs the Value of the frame the Event is received for the Freeze Time duration. By default, outputs the Reset Value.

Note that in all modes, no event is listened for the Freeze Time.

General Use Case: The box is used for scripting purpose. Used with intervals, Store Value may be used to reduce the flow of incoming data from a device.

Inputs

Event Trigger Updates the stored value on reception of this event.
Value Int, Float Receives the value to store.

Outputs

Output Float Outputs the stored value.

Parameters

General

Store Mode String Selects the Store Mode. The Trigger mode freezes the Output when an Event is received for the Freeze Time duration. The Continuous mode outputs the current Value continously until further Event. By default, outputs the Reset Value. The Reset mode outputs the Value on the frame the Event is received for the Freeze Time duration. By default, outputs the Reset Value.
Freeze Time Float Sets the Freeze Time in second. In Trigger mode, the Freeze Time sets froze duration of the Output value. In Reset mode, the Freeze Time sets the time frozen Value is outputted instead of the Reset Value.

In all modes, no event is listenned for the Freeze Time.

Reset Value Float Sets the Reset Value.

See Also

Boxes related

Delay, Accumulate, Animator, Damping, Fade, Interpolate, Timeline, Clamp, Point Recorder, Texture Save, ​​

Version Information

Current documentation version: 2.1.3. ​ ​