Notifications
Clear all

[Closed] newScript() window size

I frequently check my data by writing to a new script window
but newScript() spawns a window that’s impractically small.

The only way I found to control it is to manuall size / position a newScript() window as I wish, then the next call of newScript() “remembers” that size, so it must be stored somehow.

is there any way to control the window position and size via mxs?

2 Replies
1 Reply
(@gazybara)
Joined: 11 months ago

Posts: 0

See this tool by Pete (lonerobot)

And this works only in max 2014

fn openNewScript x: y: w: h: =
(
	newscript()
	hwnd = (windows.getChildHWND 0 "Untitled - MAXScript" parent:#max)[1] as integer
	windows.setWindowPos hwnd (box2 x y w h) on
)
openNewScript x:50 y:100 w:800 h:600