pymel.core.effects.dynPref

dynPref(*args, **kwargs)

This action modifies and queries the current state of autoCreate rigid bodies, run up to current time, and run up from(previous time or start time). In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
autoCreate (ac) bool ../../../_images/create.gif ../../../_images/query.gif
 
If on, autoCreate rigid bodies.
echoCollision (ec) bool ../../../_images/create.gif ../../../_images/query.gif
 

If on, will cause particle systems to echo to the Script Editor the command that they are running for each particle collision event. If off, only the output of the command will be echoed. Flag can have multiple arguments, passed either as a tuple or a list.

runupFrom (rf) int ../../../_images/create.gif ../../../_images/query.gif
 
If on, run up from previous time; if 2, run up from start time
runupToCurrentTime (rt) bool ../../../_images/create.gif ../../../_images/query.gif
 
If on, run up the scene to current time
saveOnQuit (sq) bool ../../../_images/create.gif ../../../_images/query.gif
 
If on, save the current values of preferences to userPrefs file.
saveRuntimeState (sr) bool ../../../_images/create.gif ../../../_images/query.gif
 
If on, runtime state as well as initial state of all particle objects will be saved to file. If off, only initial state will be saved.

Derived from mel command maya.cmds.dynPref

Example:

import pymel.core as pm

# Sets autoCreate rigid bodies to "on"
pm.dynPref( autoCreate=1 )

Previous topic

pymel.core.effects.dynPaintEditor

Next topic

pymel.core.effects.emit

Core

Core Modules

Other Modules

This Page