Things you could use a timer for:
The timer just extends the interpolator to automatically change its values over time. The idea of interpolation is also used in other nodes like the fader, which changes transparency based on a value from 0.0 to 1.0, or the pointFollower, which moves objects along a path of points based on a value from 0.0 to 1.0.
The timer (and the interpolator) are linear interpolators, meaning that they interpolate on a straight line from the start to end values. If you make a 10-second timer, then at 5 seconds, the output value will be exactly halfway between the start and end values; at 7.5 seconds, it will be exactly three-quarters of the way between them. Some other, more complex forms of interpolation allow a curve, so the values might change more quickly at the beginning than at the end. In animation this is known as "ease-in" and "ease-out", and is used to make motions less stiff and more lifelike.
| Message | Parameters | Default | Description |
| duration | float | 1.0 | set the timer duration, in seconds |
| start | start the timer moving forward, from zero | ||
| stop | stop the timer | ||
| forward | move timer forward | ||
| reverse | move timer backwards | ||
| front | move timer to the front | ||
| back | move timer to the back | ||
| startValue | float or int | 0.0 | set the start value for the timer |
| endValue | float or int | 1.0 | set the end value for the timer |
| startValues | multiple floats or multiple ints | 0.0 | set multiple start values, to interpolate more than one value at once. |
| endValues | multiple floats or multiple ints | 1.0 | set multiple end values, to interpolate more than one value at once.
notethe number of start values and the end values must be the same |
| Event | Variables | Description |
| front | the timer has reached the front | |
| back | the timer has reached the back | |
| end | the timer has ended at one extreme | |
| changed | $value {,$value1, $value2 ...} | the value or values of the timer have changed. updates continuously as the timer is running. |
| <-- Previous: Animation Overview] | Next: Interpolating --> |