9
140 Chapter 11: Space Warps and Particle Systems
integration step, because otherwise the final
position would be quite different.
Enable Scr ipt—Turn on to cause a script in memor y
to be executed at each integration step. You can
modify this sc ript by clicking the Edit button,
or load and use a script file with the remaining
controls in this group .
The default script modifies p article speed and
direction, causing particles to follow a wavy path.
Edit—Clickthisbuttontoopenatext-editor
w i ndow with the current script.
When Use Scr ipt File is off, th is is the default Every
Step U pdate script (3dsmax\scr ipts\particleflow\
example-everystepupdate.ms). When Use Script
Fileison,thisistheloadedscript,ifyou’veloaded
one. If you haven’t, clicking Edit displays the Open
dialog.
Use Script File—When on, you can load a script file
by clicking the button below.
[button]—Click this button to display an Open
dialog that lets you specify a script file to load from
disk. After you load a script, the name of script file
appears on the button.
Final Step Update group
The Final Step Update script is executed af ter the
last integration step has been completed for each
fr ame that you view (or render). For example, if
youplaytheanimationintheviewportwithReal
Time turned off, Par ticle Flow runs this script
at each f rame, im mediately before the p article
system is rendered to the viewport. However, if
you simply jump to a different frame, the script is
runonceonly,soifthescriptassumesacertain
history, you might get unexpected results.
For this reason, it’s best to use the Final Step
Update script to modify history-independent
properties. For example, if no operators in the
system depend on the material indices, you could
use it to modify the material index. In this case
there’s no need to set those indices in every
intermediate integration step. Also, you can set
up a position channel in the Final Step Update
script if you know the analytical expression for the
position.
Enable Script—Turn on to cause a script in memory
to be executed after the final integration step. You
can mo dify this script by clicking the Edit button,
or load and use a script file with the remaining
controls in this group.
The default scr ipt modifies particle sp eed and
direction, causing particles to follow a bulb-shaped
path.
Edit—Click this button to open a text-editor
window with the current script.
When Use Script File is off, this is the default Final
Step U pdate script (3dsmax\scripts\particleflow\
example-finalstepupdate.ms). When Use Script
Fileison,thisistheloadedscript,ifyou’veloaded
one. If you haven’t, clicking Edit displays the Open
dialog.
Use Script File—When on, you can load a script file
by clicking the button below.
[button]—Click this button to display an Open
dialog that lets you specify a script file to load from
disk. After you load a script, the name of script file
appears on the button.
Pa rti cle Fl ow Key bo ar d S h ort cuts
TouseParticleFlowkeyboardshortcuts,the
Keyboard Shor tcut Override Toggle on the main
toolbar must be turned on.
To view and customize these shor tcuts, open
the Customize U ser Interface dialog from the
Customize menu, and then, from the Group
drop-down menu, choose Particle Flow.