[Closed] Autoselecting viewport?
there you go… script updated (same post)… The maximize view (a layout change) bug should be fixed, a startup bug should be fixed (whoops) and the .NET Timer use is now a preference; just set the appropriate variable to false and you should be all set.
( I could ‘hide’ the UI by just opening it up off-screen, I suppose, for those who dislike the dialog but don’t want to use the .NET Timer either… thoughts? %) )
works like a charm .
as for the killing issue , i can’t think of anything but another macro to kill it
while a screen draw that you click to end the macro would be elegant , it raises the question in what viewport should it be ?
the active one ? wouldn’t that be slow a little ? …
another macro won’t do much when you’re stuck in one of the error dialogs and, as soon as you click OK, another one pops up
I just put the function that’s indirectly called in a try/catch and halt the .NET Timer if an error is throw (code adjusted up above).
Now if only I could figure out how to detect if max is the active window… better yet, the main UI, to stop the (possibly distracting) viewport changes when you’re in another dialog/application.
There’s the mainWindowEnabled callback, but that only triggers when a modal dialog pops up / closes. Boo.
minor update – v1.01 – and a proper listing now;
http://www.scriptspot.com/3ds-max/autovp-mouseover-viewport-switcher
change for v1.01 is some internal logic changes, exposing the scripted bits outside of the macroscript, and letting you pick between the .NET vs dialog method by holding the shift key when opening.
i’m not rlly experienced with callbacks so my idea might be complete bull but wouldn’t it be possible to make a callback wired to the mouse.Pos …when it changes?
just a thought
didn’t test your script yet but it sounds like a mustHave
‘fraid there’s no mouse position change callback in 3ds Max itself – there probably is in .NET but then you’d have to filter the many mouse position changes to a more reasonable level for the code to be invoked Might as well use the timer
Looks like scriptspot is still waiting to process the uploads, so I’ll attach that new version here as well -_-
AWESOME ZeBoxx2, such a handy tool, makes things much more easier!
Thanks
-A