MAXScript Tabbed Editor Window

 

   

MAXScript Editor - Quick Navigation

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.

To open the Editor,

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:

edit <filename_string>

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.

EXAMPLE

edit "my_script.ms"

or

scriptfile="my_script.ms"
edit scriptfile

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).

 

   

MAXScript Editor - Quick Navigation