Forums > MaxMSP

script for defining a bpatcher (position, size and arguments)

October 3, 2009 | 2:18 pm

Dear users,

How can one define the position (in presentation mode & in patching mode), size (in presentation mode & in patching mode) and arguments of bpatcher by script?

– Pasted Max Patch, click to expand. –

sincerely,
prko


October 3, 2009 | 4:22 pm

Check out [thispatcher] and it’s help file, especially the part about Window messages.



Ch
October 3, 2009 | 4:48 pm

you’ll have to use sendbox :

– Pasted Max Patch, click to expand. –

Charles


October 3, 2009 | 5:21 pm

thank you very much,
prko


October 3, 2009 | 8:59 pm

however, how can I define the argument of a bpatcher?
In the inspector of bpatcher, I see the argument(s).

best,
prko


October 4, 2009 | 8:35 am

(unless that has changed in max5) you can find that out by
creating one with arguments and looking at the code it produces.



Ch
October 4, 2009 | 10:50 am
prko wrote on Sat, 03 October 2009 14:59
however, how can I define the argument of a bpatcher?

with max5 you can do :

script newobject bpatcher @varname myBpatcher @args truc 256 @presentation 1


October 4, 2009 | 10:55 am

thanks a lot!
It was exactly what I want to know!


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