Notifications
Clear all

[Closed] MAXScript+ newscript() method

there is a built-in MXS method – newscript()

it creates a WindowStream with edit_window (by the SDK terminology)

I have a couple questions for those who may know or are interested in the discussion:

  1. Is there any way (including SDK, of course) to know what file this stream is associated with after we save it or save it as… ?
  2. Is there any way to programmatically bind the stream to a specific file ?
3 Replies

there is a log parameter, and it can be set to FileStream. And Using CharStream methods I can set and get filename.
Also, you can “log_to” to the specified stream, and it redirects well, but…
But all of the above does nothing with a file that can be set manually from the UI. It seems that these are completely independent mechanisms.

Forgot to say… The reading of the window caption is not a solution to get an associated file.
image

I suspect this is all related to the Scintilla document, but I don’t know how to get to it yet.