Introduction
Overview of MAXScript
MAXScript is a high-level language object-oriented and very simple syntax. It is designed for 3D Studio MAX users unfamiliar with programming. Its variables are untyped and there is no distinction between uppercase and lowercase letters.
This language does not need compiler. All instructions are carried out at runtime.
We can use 3D Studio MAX MAXScript and at the same time. You can create a cube in MAXScript and then modify it in 3D Studio.
Some examples of use of this language can be:
- Creating complex scenes interactively would be too complicated to implement.
- Creating batch tools.
- Generation of new features to facilitate a particular task.
- Using nearly all the features of 3D Studio MAX.
- Creating new panels and windows with utilities for 3D Studio MAX.
How to access MAXScript
MAXScript is in the tool pane.
This panel is a shade of profits, and within it you can press the button MAXScript
Once you've opened the shutters of MAXScript can access the options: Open listener, new script, open script, running script and close.
- Listener Open: Open MAXScript Listener window. If you click this option and the listener is minimized, or hidden behind another window, restored. If you close and reopen it, it retains the text he had before closing.
- New script: Open an editor in a new window, where you can write a new script in MAXScript
- Open script: Clicking this option opens a dialog box for opening files in which the user has to choose a script in MAXScript. Once chosen, the script will open a MAXScript Editor window with the contents of file.
- Run script: The user selects a script in MAXScript and this is read and executed. The output can be, depending on the type of script, where viewers 3D Studio MAX or in the MAXScript Listener window.
- Utilities: Sample script utilities available.
- Close: Closes the MAXScript utility.
Using the MAXScript listener
The listener can execute commands and expressions. To execute, simply type the command or expression and press the ENTER key.
We can move by the listener like a normal editor. You can also cut, copy and paste the selected text (CTRL-X CTRL-C, CTRL-V) and edit new commands within text, or modify and then we had already run.
To execute commands within text, after editing a new line, has been pressing the ENTER key on the keypad, or press SHIFT - ENTER. The results are shown in the same window, under the command or commands are executed.
It is possible to run blocks of code pre-selected and by pressing SHIFT - ENTER or by pressing ENTER from the keypad.
Include instruction inserts the contents of the file "filename" in the listener without executing. You can select the text and run it in pieces. We can work with MAXScript listener and 3D Studio MAX at the same time.
Bookmarks