Can anyone tell me how to do this? I've created some abstractions, and at the moment I have to copy the abstractions and enter the # argument into the object box. Is there a way I can trigger the box to contain a different number?
I've created an inlet within the abstraction, but what do i connect it to within the object, and what do i put in the message box (for example "set #1 7" or something?). I assume i can just send it a number.
I may be sounding stupid but can't work it out! hehe
I use a sprintf created by scripting to create my abstractions which
convert multislider lists into matrix~ coordinates. (it's generated at
instantiation, but it shouldn't be that different) I've posted them
before to the list, but if you want them, e-mail me and I'll send them
> I basically need to vary the argument of an abstraction, without
> having to enter the number into the object box: Therefore changing
> the value of "#" by sending the abstraction a number.
You haven't described any reason that simply using an inlet would not
work for you. Add an inlet to the abstraction, massage the input as
necessary, and connect it to where it needs to go. I've found very few
instances where I need to change an object's properties and can't
accomplish it through a message of some sort sent via a patchline.
In those cases - which generally involve reinstantiating an object
anyway, eg for a different number of in/outlets - I use scripting or
Maybe this is a case for #0 and maybe not. I made a goofy little
abstraction once to tell me the instantiation number given by a
#0-argument. This is one way abstractions can report their id numbers
back to their context. I refer to it as guid but you can call it
whatever you want. Use this way:
I'm sure there are better ways. After I came up with this, my project
eventually stopped using it due to improved design. Something to think
about. Here's the abstraction (copy/pasted):