Controlling a bpatcher with pcontrol

Lee's icon

Hi all, I'm having trouble changing the window position of a bpatcher using pcontrol. The attached sample works fine for a normal patcher, and once opened the window size commands work as expected. If I replace the patcher with a bpatcher, then open/close continue to work, but I can no longer control the window size and position... any ideas?

thx

Lee

test1.maxpat
Max Patch
32bit's icon

Lee, [bpatcher] creates a window within a patcher containing the contents of another patcher.
The [pcontrol] commands to open and close are designed for [patcher] abstractions.
In your example the window size commands are being sent to [thispatcher], and are not related to the [pcontrol] object.
If your goal is to control the size and position of another Max window then [bptacher] is not the right object. Rather simply put the objects (and/or bpatcher(s)) you'd like to have in a [patcher] abstraction and control that abstraction's size and position using commands to [thispatcher]
If your goal is to control the size and position of a [bpatcher] see the attached.

32bit's icon

Hm, trying upload again.

32bit's icon

OK well I guess the forum doesn't allow .maxzip or.maxproj. anyway:

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

Lee's icon

Hi, thx for the reply... I'll check out the post when I'm at home...

I'm actually trying to deal with M4L situations here and floating windows, I want to be able to have the device load a bpatcher but also control the bpatcher when it's made to be a floating window by opening it... I understand that this would normally be a patcher object, but the open/close works with a bpatcher so was hoping to be able to control it somehow as can with a patcher... will check your post out later, but thx for replying...

Lee's icon

Hi, thx for the example - i can see how this works but still doesn't solve my m4l issue... thx anyway

Stephane Morisse's icon

Hi Lee, did you solve this problem ? I'm fighting with it right now...

Stephane Morisse's icon

Turning the bpatcher into a patcher through the magics of Max 7's transform did the trick for me ! But still no luck to do the same with a bpatcher...