|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PART VI
|
Button | Action | |
---|---|---|
Open Listener | Opens the Listener window | |
New Script | Starts an empty MAXScript Editor | |
Open Script | Opens a script in the MAXScript Editor | |
Run Script | Runs a script |
The drop-down list will display the Utility scripts you have loaded.
The Macro Recorder is a new feature in MAX R3 that allows you to record every action in MAX, in the form of a script. This script can also be dragged to a toolbar or Tab, which will automatically create a button for the script.
The Macro Recorder can be turned on and off using MAXScriptØMacro Recorder. When on, the Recorder is checked in this menu. Not all options are recordable, but only a very few are not. (See Using the Macro Recorder later in this chapter for more information about this feature.)
The Listener is probably the most important interface item in MAXScript. Its where you type commands, see the output of functions, and view the recorded items. Its divided into two areas, the Macro Recorder pane (pink) and the output/command pane (white).
You can use the Listener as a floating window, as a viewport, or in the Mini-Listener. Besides all the functions in the Listener, the Mini-Listener shows you a list of the latest commands typed or recorded and allows you to select any of them.
Sometimes, when you open the Listener, the Macro Recorder pane doesnt show because its hidden in the top of the Listener window. All you need to do is drag the separating bar and it will show, or use a menu command to turn on the Macro Recorder.
When starting a new script or opening an existing one for editing, MAXScript supplies you the MAXScript Editor. It is regular text-editing software with extra features to help us write scripts:
Plug-in scripts are scripts that act like regular plug-ins. They can be objects, modifiers, render effects, helpers, etc. Plug-in scripts do not require an interface, since they are incorporated into the interface, as new plug-ins would be. See Chapter 18 for more information.
Lets create a simple script, illustrating how you can work in MAXScript. Youll start creating the bubble-like Nicle system shown in Figure 13.2. First youll record an action and save it using the Macro Recorder, and then youll write a script that enables MAX to automatically create this bubble Nicle.
FIGURE
13.2 Bubble particle system
Follow the steps below to record the creation of a bubble fountain:
Location | Parameter | Setting |
---|---|---|
Next to objects name | Color | Cyan |
Basic Parameters rollout | Off Axis Spread | 20 degrees |
Off Plane Spread | 180 degrees | |
Percentage of particles | 100 | |
Viewport Display | Mesh | |
Particle Generation rollout | Particle Quantity Rate | 3 |
Particle Motion Speed | 3 | |
Emit Stop | 100 | |
Life | 30 | |
Particle Size | 6 | |
Particle Timing Variation | 30 | |
Particle Type rollout | Standard particles | Sphere |
Bubble Motion rollout | Amplitude | 30 |
Period | 60 |
Previous | Table of Contents | Next |
© 2000, Frol (selection, edition, publication)
![]() |