Forums > MaxMSP

pasting objects between projects without initializing numberboxes

March 29, 2008 | 9:44 pm

Hi

Im trying to copy/paste numberboxes betweenprojects, but they end up initialized.

I tried pasting them together with loadbang/ preset objects

Please help :)


April 3, 2008 | 5:17 pm

Is there an object that works like numberboxes, but dont initialize
if I duplicate subpatches etc

thanks !


April 3, 2008 | 9:24 pm

I had a feeling autopattr could help out with this, and sure enough it does.

#P window setfont "Sans Serif" 9.;
#P number 461 190 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[2];
#P flonum 374 276 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum;
#P number 333 204 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 254 260 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P window linecount 1;
#P newex 53 117 100 196617 autopattr copypaste;
#B color 5;
#X prestore flonum 1 0 0.56;
#X prestore number 1 0 26;
#X prestore number[1] 1 0 35;
#P objectname copypaste;
#P connect 0 0 3 0;
#P connect 0 0 2 0;
#P connect 0 0 1 0;
#P window clipboard copycount 5;

Notice how the box not connected initializes when you paste.


April 4, 2008 | 6:25 am

Thanks, but my numberboxes still kind of initialize when i duplicate :(


April 29, 2008 | 6:51 am

Quote: DonK wrote on Thu, 03 April 2008 15:24
—————————————————-
> I had a feeling autopattr could help out with this, and sure enough it does.
>
> #P window setfont "Sans Serif" 9.;
> #P number 461 190 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[2];
> #P flonum 374 276 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname flonum;
> #P number 333 204 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[1];
> #P number 254 260 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number;
> #P window linecount 1;
> #P newex 53 117 100 196617 autopattr copypaste;
> #B color 5;
> #X prestore flonum 1 0 0.56;
> #X prestore number 1 0 26;
> #X prestore number[1] 1 0 35;
> #P objectname copypaste;
> #P connect 0 0 3 0;
> #P connect 0 0 2 0;
> #P connect 0 0 1 0;
> #P window clipboard copycount 5;
>
>
> Notice how the box not connected initializes when you paste.
>
—————————————————-

Thanks,
You name this pattr object copypaste, is the point then that i should name my numberboxes copypaste also?


April 29, 2008 | 6:56 am

yep, that worked :)

( should have bothered trying before asking, sorry )


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