WindowStream Values

The WindowStream class allows you to output strings to a script Editor window. This is useful for directing output to a separate window for ease of inspection, editing, or later saving to a file.

Constructors

newScript()

Opens an empty script Editor window and returns a WindowStream value.

Properties

<WindowStream>.hwnd

NEW in 3ds Max 2024: The windows handle for the WindowStream script window. Read only.

Associated Methods

print <value> to:<windowstream>
format "<fmt_string>" {values} to:<windowstream>

Output to a WindowStream is inserted at the current cursor position in that window.

Note: When using the format() function with a WindowStream, a new line in the Editor window is not displayed until an end-of-line character (" \\n ") is output!

EXAMPLE

debug = newScript()
...
print $foo to:debug
...
format "name is %\n" obj.name to:debug