SoElapsedTime¶
- InventorModule¶
genre
author
package
definition
Purpose¶
The engine SoElapsedTime functions as a stopwatch, outputting the time that has elapsed since it started running. By default, the timeIn input is connected to the Speed global field; however, it can be connected to any other time source.
The output from the engine reflects the time that has elapsed since it started running or since the reset input was last triggered. You can influence the speed of the output time by adjusting the speed scale factor. A value greater than 1.0 will accelerate the output, while a value less than 1.0 will decelerate it.
If you pause the engine by setting the pause input to TRUE, it stops updating the Time Out output. When you deactivate the pause, it jumps to its current position without losing time. Alternatively, if you want to stop the engine temporarily and then restart it from where it left off, use the field On.
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
Visible Fields¶
Speed¶
- name: speed, type: Float, default: 1¶
Sets the scale factor for time.
On¶
- name: on, type: Bool, default: TRUE¶
If checked, the timer starts running.
Pause¶
- name: pause, type: Bool, default: FALSE¶
If checked, the timer freezes.
Reset¶
- name: reset, type: Trigger¶
When pressed, the base time is reset.
Time Out¶
- name: timeOut, type: EngineOutput, persistent: no¶
Outputs the elapsed time, modified by the factor specified by
Speed.
This field must be connected to an appropriate Open Inventor field to access or view its value.