Source code for abaqus.Animation.AnimationController
from abaqusConstants import *
[docs]class AnimationController:
"""The AnimationController object controls all object-based animation to be displayed in
the viewports. The AnimationController object has no constructor. Abaqus creates the
*animationController* member when it creates the Session object.
Attributes
----------
animationType: SymbolicConstant
A SymbolicConstant specifying the type of movie to play. Possible values are
SCALE_FACTOR, HARMONIC, TIME_HISTORY, and NONE. The default value is NONE.
state: SymbolicConstant
A SymbolicConstant specifying the state of the animation controller. Possible values are
STOP and PLAY. The default value is STOP.
Notes
-----
This object can be accessed by:
.. code-block:: python
import animation
session.viewports[name].animationController
"""
# A SymbolicConstant specifying the type of movie to play. Possible values are
# SCALE_FACTOR, HARMONIC, TIME_HISTORY, and NONE. The default value is NONE.
animationType: SymbolicConstant = NONE
# A SymbolicConstant specifying the state of the animation controller. Possible values are
# STOP and PLAY. The default value is STOP.
state: SymbolicConstant = STOP
[docs] def play(self, duration: SymbolicConstant = UNLIMITED):
"""This method begins the animation.
Parameters
----------
duration
The SymbolicConstant UNLIMITED or an Int specifying how many seconds to play the
animation. The default value is UNLIMITED.
Raises
------
- If *animationType*=NONE:
AnimationError: animationType not set
"""
pass
[docs] def showFrame(self, frame: int = None, value: float = None):
"""This method renders the specified frame of the animation.
Parameters
----------
frame
An Int specifying the frame number.
value
A Float specifying the frame: for *animationType*=TIME_HISTORY the frame with the time
nearest to this value, for *animationType*=HARMONIC the frame with the angle nearest to
this value, for *animationType*=SCALE_FACTOR the frame with the scale value nearest to
this value.
"""
pass
[docs] def setValues(self, animationType: SymbolicConstant = NONE):
"""This method modifies the AnimationController object.
Parameters
----------
animationType
A SymbolicConstant specifying the type of movie to play. Possible values are
SCALE_FACTOR, HARMONIC, TIME_HISTORY, and NONE. The default value is NONE.
Raises
------
RangeError
"""
pass