pymel.core.effects.setDynamic¶
- setDynamic(*args, **kwargs)¶
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 Obsolete, no longer suppported or necessary. disableAllOnWhenRun / dwr bool Obsolete, no longer suppported or necessary. setAll / all bool Set for all objects. setOff / off bool Sets isDynamic false. setOn / on bool Sets isDynamic true. This flag is set by default. Flag can have multiple arguments, passed either as a tuple or a list. 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.