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 ../../../_images/create.gif
 
Obsolete, no longer suppported or necessary.
disableAllOnWhenRun (dwr) bool ../../../_images/create.gif
 
Obsolete, no longer suppported or necessary.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
setAll (all) bool ../../../_images/create.gif
 
Set for all objects.
setOff (off) bool ../../../_images/create.gif
 
Sets isDynamic false.
setOn (on) bool ../../../_images/create.gif
 
Sets isDynamic true. This flag is set by default.

Derived from mel command maya.cmds.setDynamic

Example:

import pymel.core as pm

import maya.cmds as cmds

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.

Previous topic

pymel.core.effects.saveInitialState

Next topic

pymel.core.effects.setFluidAttr

Core

Core Modules

Other Modules

This Page