Naming objects with a message

Jan 8, 2007 at 2:18pm

Naming objects with a message

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

#29552
Jan 8, 2007 at 5:48pm

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

#92601
Jan 9, 2007 at 8:35am

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
>
>

#92602
Jan 9, 2007 at 1:01pm

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
> >
> >
>

#92603
Jan 9, 2007 at 1:22pm

#92604

You must be logged in to reply to this topic.