bpatcher offset?

Daniel Neshama Itach's icon

I'm creating a device with a collapsible MIDI input section. I used a bpatcher for the main section, expecting it to be easier to move aside using "presentation_rect," but it didn't work. A forum thread recommended two solutions: sendbox and offset. However, sending an offset message to the bpatcher yielded no results. What am I missing?

tyler mazaika's icon

"offset" would usually push the child patcher's position inside the bpatcher around, as opposed to the bpatcher frame itself.

I think you'd want this message: "sendbox <bpatchervarnname> presentation_rect <new coordinates>" sent to a [thispatcher]

Daniel Neshama Itach's icon

For some reason it didn't work for me. Do you mind sending an example patch?

Wil's icon

Like this?

Move or resize.

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

florian1947's icon

Why not simply use 'script bringtofront (patcherName)' and 'script sendtoback (patcherName)'?

Daniel Neshama Itach's icon

Because I want to offset it..?
Anyway. None of these methods actually worked.

Wil's icon

Because you are still not clear what you want to do.
Offset bpatcher contents?
Offset bpatcher?

Anyway - bpatcher help file tab 3 for offset inside of bpatcher

edit
you can't just send offset message
you have to add thispatcher to bpatcher and design and measure your offsets

Roman Thilenius's icon

like someone said already, "offset" requires the inlet to be connected to [thispatcher]

of course it will also work using s/r.

you might alaso want to look into the sendtoback/bringtofront messages in the thispatcher helpfile.

Wil's icon

Thanks @Roman

just being redundantly thorough

with the 30% off sale newbies might find simple things to be difficult

!

as well, I am constantly and thoroughly confused

!

Source Audio's icon

.............

Wil's icon

Had no one idea about that one!

Time for some Frosted Flakes!