Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

animView( string[] , [endTime=time], [maxValue=float], [minValue=float], [nextView=boolean], [previousView=boolean], [startTime=time])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

animView is undoable, queryable, and editable.

This command allows you to specify the current view range within an animation editor.

Return value

None

In query mode, return type is based on queried flag.

Flags

endTime, maxValue, minValue, nextView, previousView, startTime
Long name (short name) Argument types Properties
endTime(et) time
End time to display within the editor
maxValue(max) float
Upper value to display within the editor
minValue(min) float
Lower value to display within the editor
nextView(nv) boolean edit
Switches to the next view.
previousView(pv) boolean edit
Switches to the previous view.
startTime(st) time
Start time to display within the editor

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Look at the area between 0 and 5 seconds, and the range 0 - 100
cmds.animView( 'graphView', startTime='0sec', endTime='5sec', minValue=0, maxValue=100 )