setDynamic sets the isDynamic attribute of particle objects on or off. If no objects are specified, it sets the attribute for any selected objects. If -all is thrown, it sets the attribute for all particle objects in the scene. By default it sets the attribute true (on); if the -off flag is thrown, it sets the attribute false (off). WARNING: setDynamic is obsolescent. This is the last version of Maya in which it will be supported.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
allOnWhenRun / awr | bool | ![]() |
|
|
|||
disableAllOnWhenRun / dwr | bool | ![]() |
|
|
|||
setAll / all | bool | ![]() |
|
|
|||
setOff / off | bool | ![]() |
|
|
|||
setOn / on | bool | ![]() |
|
|
Derived from mel command maya.cmds.setDynamic
Example:
import pymel.core as pm
pm.setDynamic( 'myParticles', on=True )
# Sets myParticles.isDynamic true.
pm.setDynamic( all=True, off=True )
# Sets isDynamic false for all particle objects in the scene.