The particle context command creates a particle context. The particle context provides an interactive means to create particle objects. The particle context command also provides an interactive means to set the option values, through the Tool Property Sheet, for the particlecommand that the context will issue. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
conserve (c) | float | ||
Conservation of momentum control (between 0 and 1). For smaller values, the field will tend to erase any existing velocity the object has (in other words, will not conserve momentum from frame to frame). A value of 1 (the default) corresponds to the true physical law of conservation of momentum. |
|||
cursorPlacement (cp) | bool | ||
|
|||
exists (ex) | bool | ||
grid (gr) | bool | ||
|
|||
gridSpacing (grs) | float | ||
|
|||
history (ch) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
jitterRadius (jr) | float | ||
|
|||
lowerLeftX (llx) | float | ||
|
|||
lowerLeftY (lly) | float | ||
|
|||
lowerLeftZ (llz) | float | ||
|
|||
name (n) | unicode | ||
nucleus (nc) | bool | ||
|
|||
numJitters (nj) | int | ||
|
|||
particleName (pn) | unicode | ||
|
|||
sketch (sk) | bool | ||
|
|||
sketchInterval (ski) | int | ||
|
|||
textPlacement (tp) | bool | ||
|
|||
upperRightX (urx) | float | ||
|
|||
upperRightY (ury) | float | ||
|
|||
upperZ (urz) | float | ||
|
Derived from mel command maya.cmds.dynParticleCtx
Example:
import pymel.core as pm
pm.dynParticleCtx( 'dynParticleContext', e=True, nj=5, jr=1.5 )
# Set the option values for number of jitters to 5 and jitter
# radius to 1.5 in the particle context, which will result in
# creating 5 particles for each mouse click in the viewport,
# randomly placed, but all within 1.5 units of the mouse click.