Your Ad Here

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

Synopsis

runup([cache=boolean], [fpf=boolean], [fsf=boolean], [maxFrame=time], [st=boolean])

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

runup is undoable, queryable, and editable.

runup plays the scene through a frame of frames, forcing dynamic objects to evaluate as it does so. If no max frame is specified, runup runs up to the current time.

Flags

cache, fpf, fsf, maxFrame, st
Long name (short name) [argument types] Properties
maxFrame(mxf) time
Ending time for runup, in current user time units. The runup will always start at the minimum start frame for all dynamic objects.
cache(cch) boolean
Cache the state after the runup.
fsf(fromStartFrame) boolean
Run up the animation from the start frame. If no flag is supplied -fromPreviousFrame is the default.
fpf(fromPreviousFrame) boolean
Run up the animation from the previously evaluated frame. If no flag is supplied this is the default.
st(state) boolean
Turns runup and cache on/off.

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


string

Python examples

import maya.cmds as cmds

cmds.runup( mxf=10, cache=True )

# Starts at the minimum start frame of all dynamic objects
# and plays through to frame 10.  This guarantees that the system
# is in the same state it would be as if you had rewound and played
# forward from frame 0.  The state of the dynamic object(s) will be
# cached after the runup.

  

Return to Autodesk Index


Your Ad Here