pasting objects between projects without initializing numberboxes

Mar 29, 2008 at 9:44pm

pasting objects between projects without initializing numberboxes

Hi

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

I tried pasting them together with loadbang/ preset objects

Please help :)

#36600
Apr 3, 2008 at 5:17pm

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

thanks !

#125717
Apr 3, 2008 at 9:24pm

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.

#125718
Apr 4, 2008 at 6:25am

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

#125719
Apr 29, 2008 at 6:51am

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?

#125720
Apr 29, 2008 at 6:56am

yep, that worked :)

( should have bothered trying before asking, sorry )

#125721

You must be logged in to reply to this topic.