Getting the offset value of a bpatcher

redFur's icon

Hi,

How does one get the offset value of a bpatcher? Is there some specific message? I created [thispatcher] object inside the bpatcher and connected [attrui] object to it but it doesn't give me the offset value. I can set the offset with the (offset) message but I can't get it :/

Thanks,

Ivan

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The offset is 0 0 by default until you set it to something else. So just keep track of what you set it to, and you'll always know what it is. (Of course, if you save it with some other offset, you'll need to save those offset values, presumably in a pattr.)

Max Patch
Copy patch and select New From Clipboard in Max.

And here's what the subpatch looks like:

redFur's icon

Thank you Christopher, the problem is, I am using horizontal and vertical scrollbars (max 6) to set the offset (the easiest way because of the way my interface is built) not the numbers/sliders, so I have no values to store.

MuShoo's icon

Apologies for reviving the dead thread, wondering if anyone ever figured out how to get the offset of a bpatcher after/during scrolling with the scrollbars.