Mover | This is a multi-purpose node for generating values within a specific range. | |
Alternator | This node alternates values by true or false. The duration of each state can be specified. |
The Mover is one of the most flexible and frequently used nodes. It generates an output value based on one of multiple available functions of time, either continuously or as a reaction to an event that occurred. It can be used to create simple animations like rotating an object (by binding an Axis Nodes rotation Property to the Movers output) or to animate any other property that accepts an integer value.
The Alternator is similar to the Mover in that it generates an output value based on time but in a much more specialized sense. It continuously switches between true and false, remaining at each state for a user specified time.
Function defines the mathematical function used by the Mover to calculate the values in one period. The duration of a single period is defined by the Duration property. The Sine and Cosine functions result in smooth ease-in and ease-out animations. The Linear function produces constant animations, whereas the Alternator mode switches between Min and Max values. The Random function produces random values within the specified range - one new value in each period. Infinite will run indefinitely from 0 on in a linear manner. Each period the result will increase by the given range.
Enabling Swing will produce a continuous and smooth curve. With the functions Alternate, Random and Infinite the Swing property has no effect.
Immediately upon completion of one period, the OnRepeat event is fired and a new period begins. If the mode Random is selected the randomness can be controlled by the Seed property. If Seed is set to 0 the random value sequence will be always a different one. If Seed is not 0 the random sequence will always be the same for all Movers with the same Duration, Min and Max values. This e.g. makes it possible to get same random sequences across multiple machines in a Ventuz Cluster.
The property Duration defines the actual time for processing one period in seconds. Mode controls how Duration in relation to global time is handled:
On-the-fly changes of the Duration in Absolute mode will result in a jump inside the period because the time has to be aligned to the global clock.
Only movers in Absolute mode are synchronous in a Ventuz Cluster.
The methods Nudge and Reset have no effect if the Mode is not set to OneShot or Infinite.
The Infinite function will produce issues in regards to the Cluster Clock if it is used in Absolute mode. Because of the floating point number precision this will eventually lead to inaccurate results on systems that are running in long term.