|
Python API 2.0 Reference
|
Inheritance diagram for OpenMayaAnim.MAnimControl:Static Public Member Functions | |
| def | animationEndTime () |
| def | animationStartTime () |
| def | autoKeyMode () |
| def | currentTime () |
| def | globalInTangentType () |
| def | globalOutTangentType () |
| def | isPlaying () |
| def | isScrubbing () |
| def | maxTime () |
| def | minTime () |
| def | playBackward () |
| def | playForward () |
| def | playbackBy () |
| def | playbackMode () |
| def | playbackSpeed () |
| def | setAnimationEndTime () |
| def | setAnimationStartEndTime () |
| def | setAnimationStartTime () |
| def | setAutoKeyMode () |
| def | setCurrentTime () |
| def | setGlobalInTangentType () |
| def | setGlobalOutTangentType () |
| def | setMaxTime () |
| def | setMinMaxTime () |
| def | setMinTime () |
| def | setPlaybackBy () |
| def | setPlaybackMode () |
| def | setPlaybackSpeed () |
| def | setViewMode () |
| def | setWeightedTangents () |
| def | stop () |
| def | viewMode () |
| def | weightedTangents () |
Static Public Attributes | |
| int | kPlaybackLoop = 1 |
| int | kPlaybackOnce = 0 |
| int | kPlaybackOscillate = 2 |
| int | kPlaybackViewActive = 1 |
| int | kPlaybackViewAll = 0 |
Control over animation playback and values
|
static |
animationEndTime() -> MTime Return an MTime specifying the last frame of the animation, as specified by the Maya user in the Range Slider UI.
|
static |
animationStartTime() -> MTime Return an MTime specifying the first frame of the animation, as specified by the Maya user in the Range Slider UI.
|
static |
autoKeyMode() -> bool Return the autoKeyMode.
|
static |
currentTime() -> MTime Return an MTime instance containing the current animation frame.
|
static |
globalInTangentType() -> int Return the current global in tangent type.
|
static |
globalOutTangentType() -> int Return the current global out tangent type.
|
static |
isPlaying() -> bool Return a value indicating whether Maya is currently playing the animation
|
static |
isScrubbing() -> bool Return a value indicating whether interactive scrubbing is occuring while Maya is not currently playing an animation.
|
static |
maxTime() -> MTime Return an MTime specifying the last frame of the current playback time range.
|
static |
minTime() -> MTime Return an MTime specifying the first frame of the current playback time range.
|
static |
playbackBy() -> float Return a float specifying the increment between times viewed during the playing of the animation.
|
static |
playbackMode() -> int Return the playback mode currently in effect: MAnimControl.kPlaybackOnce Play once then stop. MAnimControl.kPlaybackLoop Play continuously. MAnimControl.kPlaybackOscillate Play forwards, then backwards continuously.
|
static |
playbackSpeed() -> float Return the speed with with to play the animation.
|
static |
playBackward() -> None Start playing the current animation backwards.
|
static |
playForward() -> None Start playing the current animation forwards.
|
static |
setAnimationEndTime(MTime) -> None Set the value of the last frame in the animation.
|
static |
setAnimationStartEndTime(MTime, MTime) -> None Set the values of the first and last frames in the animation.
|
static |
setAnimationStartTime(MTime) -> None Set the value of the first frame in the animation.
|
static |
setAutoKeyMode(bool) -> None Set the autoKeyMode.
|
static |
setMinTime(MTime) -> None Set the current animation frame.
|
static |
setGlobalInTangentType(int) -> None Set the current global in tangent type
|
static |
setGlobalOutTangentType(int) -> None Set the current global out tangent type.
|
static |
setMaxTime(MTime) -> None Set the value of the last frame of the current playback time range.
|
static |
setMinMaxTime(MTime, MTime) -> None Set the values of the first and last frames of the playback time range.
|
static |
setMinTime(MTime) -> None Set the value of the first frame of the current playback time range.
|
static |
setPlaybackBy(float) -> None Specify the increment between times viewed during the playing of the animation.
|
static |
setPlaybackMode(int) -> None Set the current playback mode.
|
static |
setPlaybackSpeed(float) -> None Set the desired speed factor at which the animation will play back.
|
static |
setViewMode(int) -> None Set the current viewing mode. Controls whether the animation is run in only the active view, or simultaneously in all views.
|
static |
setWeightedTangents(bool) -> None Sets whether or not the tangents on the Anim Curve are weighted.
|
static |
stop() -> None Stop playing the current animation.
|
static |
viewMode() -> int Return the viewing mode currently in effect: MAnimControl.kPlaybackViewAll Playback in all views. MAnimControl.kPlaybackViewActive Playback in only the active view.
|
static |
weightedTangents() -> bool Determine whether or not the tangents on the Anim Curve are weighted.