Forums > MaxMSP

scrolling in a window?

January 17, 2008 | 11:26 am

Hi,

This seems like an obvious question but I can’t find an answer – is
it possible to scroll through a patcher (and jump around to different
sections of it) by an object, or message? For example, if I have a
long patch window where you can only see a portion of it, and then I
want to scroll it to the right so you can see another portion of it.

Cheers
Evan


January 17, 2008 | 11:40 am

As part of a UI you’re construction or to improve programming experience. For the latter, you’ll have to wait for the next version of max (with it’s zooming options). For the first, a bpatcher and the ofsetmessage would work.

_
johan


January 18, 2008 | 1:45 am

If you want to auto-scroll the patch and it’s not in a bpatcher, you can actually use a mini-javascript with

function scroll_window(x,y) {

this.patcher.wind.scrollto (x,y);

}

there may be syntax problems there, not sure. so from Max into the .js file, you’d send "scroll_window $1 $2" , with your X and Y anything you want. presets are good here.
or a floating control window with the XY mouseable.

-CJ



grg
January 18, 2008 | 5:28 pm

Am 17.01.2008 um 12:26 schrieb evan.raskob [lists]:
> This seems like an obvious question but I can’t find an answer – is it
> possible to scroll through a patcher (and jump around to different
> sections of it) by an object, or message? For example, if I have a
> long patch window where you can only see a portion of it, and then I
> want to scroll it to the right so you can see another portion of it.
>

check out the patch a little down this thread:

http://www.cycling74.com/forums/index.php?t=msg&goto=71053

cheers, g.


Viewing 4 posts - 1 through 4 (of 4 total)