The multiple MAXScript Editor windows used in 3ds Max 2 to 9 have been replaced with a single tabbed editor in 3ds Max 2008.
The new editor is based on the SciTE editor and Scintilla control and supports a large number of advanced features not available in the previous RichEdit-based implementation.
The MAXScript Editor is a built-in editor you can open within 3ds Max and use to create or edit text files, notably MAXScript script files.
Click MAXScript > MAXScript Editor... in the 3ds Max Main Menu to toggle the new Editor window. Any scripts that have been open for editing will be kept in the Editor, even between 3ds Max sessions.
Click MAXScript > New Script in the 3ds Max Main Menu to start a new script, or
Click MAXScript > Open Script in the 3ds Max Main Menu and select an existing script from disk to load in the Editor, or
Press the New Script or Open Script buttons in the MAXScript Utility rollout, or
Select File > New Script or File > Open Script in the MAXScript Listener's menu bar or
Right-click the Mini-Listener and select Open Editor Window.
MAXScript opens the selected script in a tab inside the modeless MAXScript Editor window:
The MAXScript Editor is suited for developing longer scripts or code fragments you want to keep. You can edit and test parts of them until they are complete, then save your code in a script file for later use. This is a common method for developing large scripts, utilities, and function libraries.
You can select one or more text lines and drag them to a 3ds Max toolbar to create a Macro Script containing the selected lines. For more information, see Defining Macro Scripts.
You can open a MAXScript Editor tab from within the Listener or from other running scripts by calling the edit() method. The syntax for the edit() method is:
where <filename_string> is a string literal or an expression that evaluates to a string, and specifies the name of the file whose contents are to be loaded into the new MAXScript Editor window.
The file will be searched for in the following directories, in the order listed:
The MAXScript System Global Variable editorShowPath controls whether the MAXScript Editor will display the full path of the edited script (true) or only the file name in the title bar (false).