|
MAXScript is located in the Utilities Panel. When initiated, the following options appear:
![]() All commands, variables, etc. can be declared directly in the Listener, or can be written using the New Script option, or still can be created using Notepad, and executed using the Run Script option.
Variable declaration in MAXScript is done typing the variable name and its value. Variables can be letters and numbers (alphanumeric), but must start with a letter, with the exception of the special characters (%*&...) and built in functions. Variable names cannot have spaces. Variables can be: Integer numbers
- 1,10, -5, 3876 After typing something in the Listener, you must execute the code for the script to run. To do so you can use SHIFT+Enter, or you can press the Enter key in the Number Keypad. Simply pressing Enter might not work if not at the end of the line of code in the Listener. Every time you are asked to enter something in the Listener in any of these tutorials, that means you are evaluating this series of commands.
Math functions are executed directly, just like variables definition. Math functions can be: <operator> + <operator> All arithmetic rules apply (parenthesis and precedence, where multiplication takes place before subtraction). Examples: 2 + 5.4 = 7.4 This tutorial might seem theoretical but these fundamentals are crucial for learning how to work with MAXScript. Alexander Esppeschit Bicalho © 1999 |