ani

Controls the animation of the loaded results in the current page.

Syntax

ani <argument>

Inputs

for
Turns the animation on in the forward direction.
Data type: string
bac
Turns the animation on in the backward direction.
Data type: string
next
If the model is not animating, the current simulation is set to the next simulation. If the model is animating, then the effect of this command is not visible. If this command is given when the model is at the last step, the message "Last Simulation reached" is displayed.
Data type: string
prev
If the model is not animating, the current simulation is set to the previous simulation. If the model is animating, then the effect of this command is not visible. If this command is given when the model is at the first step, the message "First Simulation reached" is displayed.
Data type: string
first
If the model is not animating, the current simulation is set to the first simulation. If the model is animating, the effect is not visible.
Data type: string
last
If the model is not animating, the current simulation is set to the last simulation. If the model is animating, the effect is not visible.
Data type: string
fab
The animation is turned on in bouncing mode.
Data type: string
off
The animation is turned off.
Data type: string
step <step no.>
The current simulation step is set to the specified <step no.>. If the step number is not in the range of total number of simulation steps, then an error message is displayed. The step number is from 1 to n (n being the last simulation step).
Data type: string, int

Outputs

Nothing

Errors

No error codes.

If the results are not loaded in the active window of the application, then the message "Result File not loaded" is displayed on the TK Console. If an argument other than the ones mentioned above or no argument is supplied to the ani command, then the correct usage is displayed in the TK Console.

Examples

The following example turns the animation on in the forward direction. It will work only if the results are loaded in the active window of the application.
ani for;

Comments

This command works only if results are loaded. If they are not loaded, then the message "Result File not loaded" is displayed.