Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

setDynamic [-allOnWhenRun] [-disableAllOnWhenRun] [-setAll] [-setOff] [-setOn] selectionList

setDynamic is undoable, NOT queryable, and NOT editable.

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.

Return value

stringarray

Flags

allOnWhenRun, disableAllOnWhenRun, setAll, setOff, setOn
Long name (short name) Argument types Properties
-allOnWhenRun(-awr) create
Obsolete, no longer suppported or necessary.
-disableAllOnWhenRun(-dwr) create
Obsolete, no longer suppported or necessary.
-setAll(-all) create
Set for all objects.
-setOff(-off) create
Sets isDynamic false.
-setOn(-on) create
Sets isDynamic true. This flag is set by default.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

setDynamic -on myParticles;
// Sets myParticles.isDynamic true.

setDynamic -all -off;
// Sets isDynamic false for all particle objects in the scene.