Forums > MaxMSP

subpatcher with UI

January 22, 2009 | 9:02 pm

Good afternoon,

If I am modularizing large patches, and the resulting subpatchers contain UI elements, does that mean, in order to display those at the parent level, I have to use bpatchers and store the subpatcher as abstraction (file) ?

any other way to have it just contained in the main patcher ?

cheers, nick


January 22, 2009 | 9:23 pm

Yes, you can turn on the toggle to "Embed" in the inspector. To then edit the patch, ctrl-click on the bpatcher and choose Object->New View of "". I’m personally quite fond of this way of working with bpatchers, but YMMV.
You might also appreciate the articles on our website called Freshening Up.

Best,
Andrew B.


January 22, 2009 | 9:28 pm

cheers

btw, what do you reckon when you will publish the next part of the jitter of the video processing series ?

nick


January 24, 2009 | 1:35 pm

@andrewb

Hello,

I am having two problems (i’d go so far as to call them bugs) with the method you suggest:

Firstly,

I have added the following line to my max-keycommands text:

max definecommand B patcher inserttextobj "bpatcher @presentation 1 @embed 1";

Shift+b now creates a bpatcher with both ‘include in presentation’ and ‘embed in parent patcher’ set.

However, when I right click the bpatcher, the ‘object’ entry in the contextual menu is greyed out (thus Object->New View of "" cannot be done).

I have to manual set ‘embed in parent patcher’ off (or 0) then back on again before the ‘object’ submenu is enabled.

Secondly,

I copy and paste that which I want to encapsulate into the bpatcher, add the ui elements i require to presentation, then use the inspector to set ‘open in presentation’ to 1.

When I return to the parent patcher, the bpatcher is not in presentation mode.

If I close theparent patch and reopen the bpatcher is now in presentation mode, as expected.

Any way to have the parent view of the bpatcher update to ‘presentation’ without closing/reopening the parent in which it is embedded?

Cheers

I am using Max 5.0.5 on Os X by the way.


January 24, 2009 | 8:14 pm


January 25, 2009 | 1:14 pm

Ah thank you Stefan. A case of overlooking a simpler solution.

Anyway therefore of defining a keycommand that creates a prototype of an object?

I know it will only save a couple of mouse clicks, but this is something I tend to do quite a lot…

Cheers
Will


January 26, 2009 | 6:47 am


January 26, 2009 | 11:48 am

On 26 janv. 09, at 07:47, Stefan Tiedje wrote:

>> Anyway therefore of defining a keycommand that creates a prototype of
>> an object?
>> I know it will only save a couple of mouse clicks, but this is
>> something I tend to do quite a lot…
>
> I haven’t found one, maybe Emmanuel knows what to put into max-
> keycommands?
> "; max definecommand B patcher insertbpatcher" doesn’t work…;-)
> This is a feature request if it isn’t possible yet…
>
> Usually, the double click would open them, as I mostly had choosen
> them last, and other UI objects I tend to type by name…

You can’t solve every problem with a single key click. For that one
you’ll have to use your mouse, and use the prototype feature.

Best,
ej


February 10, 2009 | 7:12 pm

Is there a better way of displaying notes in a score like way? I want
to be able to input a short sequence of notes (from kslider) and see
what I’ve entered on a stave. I was trying out MaxScore, which does
exactly what I want, but the JSML licence is a bit expensive just to
be able to see 12 notes entered in sequence!

Here’s the immediate solution, but it’s a horrible kludge! I’m
wondering if this is something for lcd? And if so has anyone done
this? (I think it’s way beyond me)

thanks

David

– Pasted Max Patch, click to expand. –

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