Forums > MaxMSP

bpatcher size ?


f.e
August 10, 2006 | 9:57 am

Hello,

is there still no way to now the real / shown size of a bpatcher, not
the un-modifiable size of its embedded patcher ? tried again anything in
js, but chou blanc.

best

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|


August 10, 2006 | 10:14 am

Hi, f.e.

Is this of any help?

http://www.cycling74.com/story/2006/4/14/145031/478

Best,
Trond

> is there still no way to now the real / shown size of a bpatcher, not
> the un-modifiable size of its embedded patcher ? tried again anything
> in js, but chou blanc.


August 10, 2006 | 12:13 pm

Trond Lossius wrote:
> Hi, f.e.
>
> Is this of any help?
>
> http://www.cycling74.com/story/2006/4/14/145031/478
>
> Best,
> Trond
>
>> is there still no way to now the real / shown size of a bpatcher, not
>> the un-modifiable size of its embedded patcher ? tried again anything
>> in js, but chou blanc.
>
>
>
>

save as main.pat

max v2;
#N vpatcher 21 53 420 548;
#P origin -58 -42;
#P window setfont "Sans Serif" 9.;
#P newex 67 197 83 196617 r to_thispatcher;
#N thispatcher;
#Q end;
#P newobj 67 222 60 196617 thispatcher;
#P bpatcher 10 275 16 16 1 -34 resize_me.pat 0;
#P objectname resize_me;
#P comment 19 254 232 196617 bpatcher is named "resize_me (Object >
Name…)";
#P connect 3 0 2 0;
#P pop;

save as resize_me.pat

max v2;
#N vpatcher 418 101 1080 564;
#P origin 5 39;
#P toggle 0 35 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 28 333 83 196617 s to_thispatcher;
#N vpatcher 776 464 1176 764;
#P window setfont "Sans Serif" 9.;
#P message 85 77 138 196617 script size resize_me 16 16;
#P outlet 70 125 15 0;
#P newex 70 55 40 196617 sel 1 0;
#P inlet 70 33 15 0;
#P message 70 97 150 196617 script size resize_me 197 205;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P connect 0 0 3 0;
#P connect 4 0 3 0;
#P connect 2 1 4 0;
#P pop;
#P newobj 28 311 61 196617 p;
#P user panel 0 35 382 244;
#X brgb 247 133 133;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden connect 3 0 1 0;
#P connect 1 0 2 0;
#P pop;

ps: why does everything has to be done with javascript nowadays? i start
feeling old…



f.e
August 10, 2006 | 2:07 pm

Hello pure@test.at (what a strange name)

thanks for your patch, but i’m not sure it’s about what i’m looking for
: I wanted to make a hacked version of Tim’s LCD meters my regular
meter~; so it means as you resize the bpatcher, the lcd inside is
resized as well. As far as i know, we can set the size of a bpatcher
(not easily, anyway) but there’s still no way to get it. Or i didn’t
understand your patch…

cheers

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

pure@test.at wrote:
> Trond Lossius wrote:
>> Hi, f.e.
>>
>> Is this of any help?
>>
>> http://www.cycling74.com/story/2006/4/14/145031/478
>>
>> Best,
>> Trond
>>
>>> is there still no way to now the real / shown size of a bpatcher,
>>> not the un-modifiable size of its embedded patcher ? tried again
>>> anything in js, but chou blanc.
>>
>>
>>
>>
>
>
> save as main.pat
>
> max v2;
> #N vpatcher 21 53 420 548;
> #P origin -58 -42;
> #P window setfont "Sans Serif" 9.;
> #P newex 67 197 83 196617 r to_thispatcher;
> #N thispatcher;
> #Q end;
> #P newobj 67 222 60 196617 thispatcher;
> #P bpatcher 10 275 16 16 1 -34 resize_me.pat 0;
> #P objectname resize_me;
> #P comment 19 254 232 196617 bpatcher is named "resize_me (Object >
> Name…)";
> #P connect 3 0 2 0;
> #P pop;
>
>
> save as resize_me.pat
>
> max v2;
> #N vpatcher 418 101 1080 564;
> #P origin 5 39;
> #P toggle 0 35 15 0;
> #P window setfont "Sans Serif" 9.;
> #P newex 28 333 83 196617 s to_thispatcher;
> #N vpatcher 776 464 1176 764;
> #P window setfont "Sans Serif" 9.;
> #P message 85 77 138 196617 script size resize_me 16 16;
> #P outlet 70 125 15 0;
> #P newex 70 55 40 196617 sel 1 0;
> #P inlet 70 33 15 0;
> #P message 70 97 150 196617 script size resize_me 197 205;
> #P connect 1 0 2 0;
> #P connect 2 0 0 0;
> #P connect 0 0 3 0;
> #P connect 4 0 3 0;
> #P connect 2 1 4 0;
> #P pop;
> #P newobj 28 311 61 196617 p;
> #P user panel 0 35 382 244;
> #X brgb 247 133 133;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P hidden connect 3 0 1 0;
> #P connect 1 0 2 0;
> #P pop;
>
>
>
> ps: why does everything has to be done with javascript nowadays? i
> start feeling old…
>


August 10, 2006 | 3:03 pm



f.e
August 10, 2006 | 6:12 pm


August 11, 2006 | 12:09 pm

yes; "script size 50 100" to thispatcher should work as espected.
(=replacing the missing possibility to send
a "size" message to the bpatcher object.)


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