IAnimation#
- class ansys.stk.core.stkobjects.IAnimation#
Provide methods to control scenario animation.
Overview#
Animate forward. |
|
Animate backward. |
|
Pause the animation. |
|
Stop and reset the animation. |
|
Advance the animation one step forward. |
|
Reverse the animation one step backward. |
|
Increase the speed of the animation. |
|
Decrease the speed of the animation. |
Animation mode. |
|
Current animation time. In Epoch seconds. |
|
Get animation time step. |
|
Animation options. |
|
Control the animation speed. |
Examples#
Reset the scenario time
# STKObjectRoot root: STK Object Model Root
root.rewind()
Change animation mode
# STKObjectRoot root: STK Object Model Root
scenario = root.current_scenario
root.animation_options = AnimationOptionType.STOP
root.mode = AnimationEndTimeMode.X_REAL_TIME
scenario.animation_settings.animation_step_value = 1 # second
scenario.animation_settings.refresh_delta = 0.03 # second
Import detail#
from ansys.stk.core.stkobjects import IAnimation
Property detail#
- property IAnimation.mode: AnimationEndTimeMode#
Animation mode.
- property IAnimation.animation_options: AnimationOptionType#
Animation options.