How do i use a patcher argument in a scripting name (varname)?

Jan 2, 2011 at 8:01pm

How do i use a patcher argument in a scripting name (varname)?

my google foo has failed me.

How do i use #1 in a scripting name? (or more precisely, is there a way that doesn’t involve loadbang and “varname #1-name”?)

#54205
Jan 2, 2011 at 8:25pm

I don’t know if that’s possible. Wizards chime in?

#195104
Jan 2, 2011 at 8:35pm

good question. normally i would think that when you split the # from 1 and
sprintf them together when sending the script command it could work for
max v4 style scripting?

[t '#'] [t 1]

[sprintf %s%s]

[list script new user external s 0 0 0 0 0 0]

[thispatcher]

i have no max here to try. it might end up as [external $0].

-110

#195105
Jan 5, 2011 at 11:28am

I’ve a question… Why? The varname is local to the patcher, so there’s no need to put a #1 in it, is there?

#195106
Jan 6, 2011 at 10:43pm

i had an abstraction that i wanted to de-encapsulate so that objects would have the varnames sequentially numbered.

also, to stay consistent with my naming scheme.

#195107

You must be logged in to reply to this topic.