Your Ad Here

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

Synopsis

animDisplay([modelUpdate=none|interactive|delayed], [timeCode=boolean], [timeCodeOffset=string])

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

animDisplay is undoable, queryable, and editable.

This command changes certain display options used by animation windows.

Flags

modelUpdate, timeCode, timeCodeOffset
Long name (short name) [argument types] Properties
timeCode(tc) boolean createqueryedit
Controls whether the animation windows (time slider, graph editor and dope sheet) use time codes in their displays.

In query mode, this flag needs a value.

timeCodeOffset(tco) string createqueryedit
Amount of time by which to offset the time code display in the UI. An offset of one second would display a time code of "00:00:01:00" at frame 0. Query returns string in time code format.

In query mode, this flag needs a value.

modelUpdate(upd) none|interactive|delayed createqueryedit
Controls how changes to animCurves are propagated through the dependency graph. If modelUpdate is "none" then changing an animCurve will not cause the model to be updated (change currentTime in order to update the model). If modelUpdate is "interactive" (which is the default setting), then as interactive changes are being made to the animCurve, the model will be updated. If modelUpdate is delayed, then the model is updated once the final change to an animCurve has been made. With modelUpdate set to either "interactive" or "delayed", changes to animCurves made via commands will also cause the model to be updated.

In query mode, this flag needs a value.


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.

Return value


none

Python examples

import maya.cmds as cmds

# If the current time unit were ntsc (30 frames per
# second) frame 50 would be displayed as "00:00:01:20".
#
cmds.animDisplay( timeCode=True )

# Set the time code offset to be equivalent to
# "02:01:25:12".
#
cmds.animDisplay( timeCodeOffset="02:01:25:12" )

# Set the display option so that interactive operations
# in the graph editor or dope sheet will cause the
# model views to be updated simultaneously
#
cmds.animDisplay( modelUpdate="interactive" )

  

Return to Autodesk Index


Your Ad Here