Notifications
Clear all
[Closed] MAXScript+ newscript() method
Sep 25, 2023 4:01 pm
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:
- 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… ?
- Is there any way to programmatically bind the stream to a specific file ?
3 Replies
Sep 25, 2023 4:01 pm
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.
Sep 25, 2023 4:01 pm
Forgot to say… The reading of the window caption is not a solution to get an associated file.
Sep 25, 2023 4:01 pm
I suspect this is all related to the Scintilla document, but I don’t know how to get to it yet.