pymel.core.effects.dynCache¶
- dynCache(*args, **kwargs)¶
Cache the current state of all particle shapes at the current time.
Derived from mel command maya.cmds.dynCache
Example:
import pymel.core as pm # Create an emitter and connect it to a particle shape pm.emitter(typ='omni', pos=(1, 1, 1), n='myEmitter') pm.particle(n='myParticles') pm.connectDynamic('myParticles', em='myEmitter') # Cache all attributes of the particle shape at time 50 pm.playbackOptions(min=0, max=50, ast=0, aet=100) pm.currentTime('0'); pm.play(w=True) pm.dynCache()