Go to: Synopsis. Return value. Python examples.

Synopsis

dynCache()

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

dynCache is undoable, NOT queryable, and NOT editable.

Cache the current state of all particle shapes at the current time.

Return value

None

Python examples

import maya.cmds as cmds

# Create an emitter and connect it to a particle shape
cmds.emitter(typ='omni', pos=(1, 1, 1), n='myEmitter')
cmds.particle(n='myParticles')
cmds.connectDynamic('myParticles', em='myEmitter')

# Cache all attributes of the particle shape at time 50
cmds.playbackOptions(min=0, max=50, ast=0, aet=100)
cmds.currentTime('0');
cmds.play(w=True)
cmds.dynCache()