emitter is undoable, queryable, and editable.
Creates an emitter object. If object names are provided or if
objects are selected, applies the emitter to the named/selected
object(s)in the scene. Particles will then be emitted from each. If
no objects are named or selected, or if the -pos option is
specified, creates a positional emitter. If an emitter was created,
the command returns the name of the object owning the emitter, and
the name of emitter shape. If an emitter was queried, the command
returns the results of the query. Keyframeable attributes of the
emitter node: rate, directionX, directionY, directionZ,
minDistance, maxDistance, spread.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
-type(-typ) |
string |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Type of emitter. The choices are omni | dir | direction | surf
| surface | curve | curv. The default is omni. The full definition
of these types are: omnidirectional point emitter, directional
point emitter, surface emitter, or curve emitter. |
|
-directionX(-dx) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
x-component of emission direction. Used for directional
emitters, and for volume emitters with directionalSpeed. |
|
-directionY(-dy) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
y-component of emission direction. Used for directional
emitters, and for volume emitters with directionalSpeed. |
|
-directionZ(-dz) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
z-component of emission direction. Used for directional
emitters, and for volume emitters with directionalSpeed. |
|
-minDistance(-mnd) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Minimum distance at which emission starts. |
|
-maxDistance(-mxd) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Maximum distance at which emission ends. |
|
-position(-pos) |
linear linear linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) ![multiuse multiuse](../gfx/multiuse.gif) |
|
Positional emitter at world space location (x,y,z). |
|
-rate(-r) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Rate at which particles emitted (can be non-integer). For point
emission this is rate per point per unit time. For surface emission
it is rate per square unit of area per unit time. |
|
-spread(-sp) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Random spread (0-1), as a fraction of 90 degrees, along
specified direction. Directional emitters only. |
|
-speedRandom(-srn) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Identifies a range of random variation for the speed of each
generated particle. If set to a non-zero value, speed becomes the
mean value of the generated particles, whose speeds vary by a
random amount up to plus or minus speedRandom/2. For example, speed
5 and speedRandom 2 will make the speeds vary between 4 and 6. |
|
-cycleEmission(-cye) |
string |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Possible values are "none" and "frame." Cycling emission
restarts the random number stream after a specified interval. This
can either be a number of frames or a number of emitted particles.
In each case the number is specified by the cycleInterval
attribute. Setting cycleEmission to "frame" and cycleInterval to 1
will then re-start the random stream every frame. Setting
cycleInterval to values greater than 1 can be used to generate
cycles for games work. |
|
-cycleInterval(-cyi) |
int |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Specifies the number of frames or particles between restarts of
the random number stream. See cycleEmission. Has no effect if
cycleEmission is set to None. |
|
-speed(-spd) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Speed multiple. Multiplies the velocity of the emitted
particles by this amount. Does not apply to volume emitters. For
that emitter type, use directionalSpeed. |
|
-normalSpeed(-nsp) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Normal speed multiple for point emission. For each emitted
particle, multiplies the component of the velocity normal to the
surface or curve by this amount. Surface and curve emitters
only. |
|
-tangentSpeed(-tsp) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Tangent speed multiple for point emission. For each emitted
particle, multiplies the component of the velocity tangent to the
surface or curve by this amount. Surface and curve emitters
only. |
|
-volumeShape(-vsh) |
string |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Volume shape of the emitter. Sets/edits/queries the field's
volume shape attribute. If set to any value other than "none",
determines a 3-D volume within which particles are generated.
Values are: "cube," "sphere," "cylinder," "cone," "torus." |
|
-volumeOffset(-vof) |
linear linear linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Volume offset of the emitter. Volume offset translates the
emission volume by the specified amount from the actual emitter
location. This is in the emitter's local space. |
|
-volumeSweep(-vsw) |
angle |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Volume sweep of the emitter. Applies only to sphere, cone,
cylinder, and torus. Similar effect to the sweep attribute in
modelling. |
|
-torusSectionRadius(-tsr) |
linear |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Section radius for a torus volume. Applies only to torus.
Similar to the section radius in the torus modelling
primitive. |
|
-awayFromCenter(-afc) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Initial velocity multiplier in the direction away from the
center point of a cube or sphere volume emitter. Used only with the
cube and sphere volume emitters. |
|
-awayFromAxis(-afx) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Initial velocity multiplier in the direction away from the
central axis of the volume. See the diagrams in the documentation.
Used only with the cylinder, cone, and torus volume emitters. |
|
-aroundAxis(-arx) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Initial velocity multiplier in the direction around the central
axis of the volume. See the diagrams in the documentation. Applies
only to volume emitters. |
|
-alongAxis(-alx) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Initial velocity multiplier in the direction along the central
axis of the volume. See the diagrams in the documentation. Applies
only to volume emitters. |
|
-randomDirection(-rnd) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Magnitude of a random component of the speed from volume
emission. |
|
-directionalSpeed(-drs) |
float |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
For volume emitters only, adds a component of speed in the
direction specified by the directionX, Y, and Z attributes. Applies
only to volume emitters. Does not apply to other types of
emitters. |
|
-scaleSpeedBySize(-ssz) |
boolean |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Indicates whether the scale of a volume emitter affects its
velocity. |
|
-needParentUV(-nuv) |
boolean |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
If aNeedParentUV is true, compute parentUV value from each
triangle or each line segment, then send out to the target particle
object. You also need to add parentU and parentV attributes to the
particle object to store these values. |
|
-scaleRateByObjectSize(-sro) |
boolean |
![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Applies to curve and surface emitters, only. If true, number of
particles is determined by object size (area or length) times rate
value. If false, object size is ignored and the rate value is used
without modification. The former is the way Maya behaved prior to
version 3.0. |
|