Hold Value



Table of contents:


Description:
This node will save a value from the "In" input as long as the user-defined mode describes. If the mode's condition is not fulfilled, the input will be re-evaluated and the new value will be stored again until the requirements are not met anymore. This whole process will be repeated again and again.
The practical use of this node is mainly for sampled shader-trees created with the Take Samples node.


Location:
The node will be added to the "Pom's Nodes/Math" menu under the name "Hold Value".
Settings:

Mode:
A Does Change: The input value will be stored until A has the same value twice in a row.

A Does Not Change: The input value will be stored until A changes the value.

A (Not) Equal To B: The input value will be stored as long as A is (not) equal to B.

A Greater/Less Than B: The input value will be stored as long as A is greater/less than B.

A Greater/Less Than Or Equal To B: The input value will be stored as long as A is greater/less than or equal to B.

Input:
The input value, which will be stored as long as the mode describes.

A / B:
Just like in LightWave's native Logic node, these fields express values used to check the condition defined by the mode.


Hold Value