Creates the fireworks effect.
>
Sets the options when creating a fire effect. Here are the options:
-
-
Specifies the name of the fireworks object.
-
-
Specifies the number of rocket particles that fly up and burst. You cannot add or remove rockets once the Fireworks effect
is created. You need to choose again if you want more or less rockets.
- , ,
-
Specify the launch coordinates used to create all the firework rockets. These parameters are used only at creation time; you
can later specify different launch positions for each rocket.
- ,,
-
Specify the coordinates of the center position around which all of the rockets burst. These parameters are used only at creation
time; you can move the burst positions later.
- ,,
-
Specify the size of the rectangular volume containing the random burst positions. Each extent is the distance from the setting. These parameters are used only at creation time; you can individually move the burst positions later.
-
-
Sets the frame when the first rocket launches. Subsequent launch times are determined by the field. This parameter is used only at creation time; you can specify individual rocket launch times later.
-
-
Sets the rate of rocket launches after the first launch. The rate formula is one divided by the number of frames per rocket.
For example, 0.1 means one rocket launches every 10 frames. This parameter is used only at creation time; you can specify
individual rocket launch times later.
- ,
-
Set the time range between the launch and burst of each rocket. These parameters are used only at creation time to randomly
distribute the length of each rocket’s flight. Later, you can specify each rocket’s launch and burst frame.
-
-
Sets how fast all rockets burst, and, consequently, how wide the bursts appear. Each particle in the burst has a random speed,
and this speed is the maximum. This parameter is typically set at creation time, but you can edit it later.
-
-
Turn this checkbox on to specify your own MEL procedure that creates the colors used for all rocket trails. Leave this checkbox
off to use the default color creation procedure. Using your own color creation procedure can save you time editing it later
in the . You cannot change this option after creation.
-
-
If you turned on , this parameter lets you specify a custom MEL procedure name to create a custom trail color palette. Maya looks for the custom
procedure by searching your user scripts directory for a MEL script with the same name. You cannot change this option after creation, although you can individually edit the trail colors.
Your procedure should include the following syntax:
global proc vector[] myFireworksColors( int $numColors )
In this syntax, the argument $numColors specifies the total number of colors requested. The return value should be an array
of vectors with the new colors in it.
-
-
Sets the number of different colors for rocket trails. By default, trail colors are chosen in the yellow to orange spectrum.
You can change the colors used, but you cannot change the number of colors after the firework is created.
Rocket Sparks creation controls
- ,
-
Each burst consists of a number of streaks randomly distributed between these two values.
-
-
Sets the number of different colors in your burst sparks palette. The actual number of colors used is set by the option (see Sparks Color Spread for details). By default, the burst sparks palette colors are chosen in consecutive order around the color wheel. You can
change the colors used, but you cannot change the number of colors available after the firework is created.