zoom in locked patcher?

amounra's icon

I'm guessing the answer to this is no, but:

Is there anyway to access the Zoom feature that is available as of Max5 in a locked patcher? This would simplify things greatly for me....

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

the useful but officially unsupported 'zoomfactor' message to thispatcher:

amounra's icon

OMG thank you Ben! You just saved me so much time and effort :)

spectro's icon

Nice. Gotta love those "officially unsupported" solutions!

amounra's icon

And now: is there some way to navigate the position of zoomed focus? I've tried various things: this.patcher.scrolloffset = [0,0] seems broken completely, and I tried other things (just guesses) without success.

Thanks in advance :)

Ben Bracken's icon

Try this.patcher.wind.scrollto(x,y). You will want to use integer values.

-Ben

amounra's icon

That's exactly what I was after :) Thanks again!

benj3737's icon

Ben, can you explain further what to do with the this.patcher.wind.scrollto(x,y)? Sending it to thispatcher doesn't do anything.
Thanks!

Ben Bracken's icon

That last bit is for javascript. Check out the patch I posted earlier in the thread for thispatcher usage.

-Ben

Rodrigo's icon

Is it me or is there no patch earlier in the thread with javascript?

Mike S's icon

Put this is in the documentation!

ARGHGHGHGH!

benniy's icon

awesome! thanks ben!