The Legacy Scripting Editor Windows

Note: This topic describes the Legacy Scripting Editor Windows used in versions prior to 3ds Max 2008. Some areas of MAXScript in 3ds Max 2008 and higher such as, Particle Flow Script Operators and the newScript() method still open instances of the Legacy Editors. For documentation of the new Scripting Editor, see Scripting Editor Window.

You can create an empty Legacy Scripting Editor window from within the Listener or from other running scripts by calling the newScript() method.

The syntax for the newScript() method is:

newScript()

Opens an empty Scripting Editor window and returns a WindowStream value that can be used as the target for print and format operations. This is useful for directing output to a separate window for ease of inspection or editing, or later saving to a file. Output to a WindowStream is inserted at the current cursor position in that window.

Note: In 3ds Max 2008 and higher, the newScript() method still creates a Legacy Editor and not a new tab in the new Editor.

FOR EXAMPLE:

b=box()
debug = newScript()
-- ...
print b to:debug
-- ...
format "name is %\n" b.name t:debug

The Legacy Scripting Editor window has the following features:

For commands used within the Scripting Editor window, see Scripting Editor Commands.