SOLVED: Persistent Zoom + Resize from Locked Presentation

DC212's icon

Here is a handy patch to zoom/resize dynamically AND edit settings on the fly without ever leaving presentation view.

Once set, hovering over the various UI objects will report window size to prepare for next action, keeping Max zoom and presentation resizing in sync. It uses their scripting names to trigger the action.

Open the first patch and drag window around, adjust zoom with menu and INCDEC, click expand tab back and forth. Everything should stay synced.

To change settings from a locked presentation: click EDIT.
- Drag window around and/or drag height/width to desired INITIAL settings.
- Click SET INITIAL
- Drag width of window to desire location to desired variable width.
- Click SET EXPANDED.
- Click Update.
- Uncheck EDIT from main patcher window.

Activating / Deactivating EDIT MODE switches between grow and nogrow window flags, to prevent scrolling while locked.

Also great for finished standalones and Max4Live, to bring zoom/resize functionality to other targets. Just delete the EDIT button (or remove from presentation view) when set.

NOTE: when back in patching view, don't forget to enable disable grow/nogrow windowflags as needed.

Also a little hidden feature... ZOOMZOOM... when Max's idea of 100% just isn't enough. Just enter a float factor so that your "100%" can be whatever you want, regardless of actual patch zoom.

Two patches attached. One expanded example with annotations and one clean-ish encapsulated version with EDIT MODE in a popup window. The second version is easier to drop into existing patches or as a template to start a patch from scratch with the features already baked in.

I hope someone can get some good use out of this. Bit of a mess, but it works great so far. Many thanks for all the incredible help provided here in the forum. It's nice to contribute back. Many thanks to Joe Kaplan, whose JS window offset saved the day.

ZOOMSIZER18.maxpat
Max Patch
ZOOMSIZER18_clean_v5.maxpat
Max Patch