Forums > MaxMSP

Naming objects with a message

January 8, 2007 | 2:18 pm

Is there a way to give a name to an object via a message to that object?

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


January 8, 2007 | 5:48 pm

That would be great (i.e., all objects accept a *name foo* message) but I don’t think so. Possibly it’s because naming in real-time could cause problems…?

However, you can name all a patch’s instances of an object class (like number boxes) all at once, though perhaps you knew that….

Can be handy if you decide you need scripting down the road and have a lot of objects you never named.

–CJ



f.e
January 9, 2007 | 8:35 am

I’m sure it can be done by writing a C external for this. We can get the
names, why can’t we set them ?

f.e

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

Seejay James wrote:
> That would be great (i.e., all objects accept a *name foo* message) but I don’t think so. Possibly it’s because naming in real-time could cause problems…?
>
> However, you can name all a patch’s instances of an object class (like number boxes) all at once, though perhaps you knew that….
>
> Can be handy if you decide you need scripting down the road and have a lot of objects you never named.
>
> –CJ
>
>


January 9, 2007 | 1:01 pm

Have a look at p.26 of Javascript in Max. There’s a varname property
that you can use to set the name of a maxobject.

wes

On 1/9/07, f.e

wrote:
> I’m sure it can be done by writing a C external for this. We can get the
> names, why can’t we set them ?
>
> f.e
>
> f.e chanfrault | aka | personal computer music
> > >>>>>> http://www.personal-computer-music.com
> > >>>>>> |sublime music for a desperate people|
>
>
> Seejay James wrote:
> > That would be great (i.e., all objects accept a *name foo* message) but I don’t think so. Possibly it’s because naming in real-time could cause problems…?
> >
> > However, you can name all a patch’s instances of an object class (like number boxes) all at once, though perhaps you knew that….
> >
> > Can be handy if you decide you need scripting down the road and have a lot of objects you never named.
> >
> > –CJ
> >
> >
>


January 9, 2007 | 1:22 pm


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