horizontal scroll control for wide applications

rob beattie's icon

hello.

is it possible to make some kind of script, for objects to control the position of the screen without using a mouse wheel or using arrow keys. for application project sizes that go beyond the physical wideness of a laptop screen, desktop screen or monitor.

or can i [focus] on different objects within a patch, the patch might be 3000 wide, object 1 positioned at [0], object 2 at 2500. and have control to alternate those two positions, and goto those positions within my project/application.

ive made a small patch, that details more of what im asking. hope someone can put me in the right direction, cheers - rob.

horizontal positioning.maxpat
Max Patch

Source Audio's icon

this script

function scroller(x,y) {this.patcher.wind.scrollto(x,y);}

here is example patch, use space key to switch through offsets

Patch_Scroller.zip
zip


rob beattie's icon

Source Audio, many thanks for the help, cheers

regards - rob

rob beattie's icon

SOURCE AUDIO, hello, just a query. if i wanted to make the scroll, vertical and not horizontal, what do i need to change,

sorry for the question, and its been a while, but, the theory of the scroll element has brought the idea to another patch/application, I'm just trying to figure what would make it vertical or horizontal, and what script i need to change, hope you can help, cheers - rob

Source Audio's icon

if $1 0 scrolls horizontal,

then 0 $1 does vertical,

and $1 $2 accepts a list for both

rob beattie's icon

ah right, ok, cheers, thanks for the info, kind regards - rob.