How get arguments of objects ?


    Oct 04 2006 | 2:22 pm
    JS is very incredible. I can retrieve many informations of objects in a patcher and subpatchers : position, color, type, name... but how can I access to parameters of objects ???
    Example: I have many "send~" : "send~ toto1","send~ toto2","send~ toto3"... How can I find the MaxObj of toto2 ?

    • Oct 04 2006 | 4:01 pm
      The arguments to send and receive objects are visible as "Global" objects in Javascript.
      g = new Global("toto1"); post(g);
      I don't know how well this works for send~ signals however. I don't think you can do dsp programming in javascript.
      Steve
      On 10/4/06, Thomas Goepfer wrote: > > JS is very incredible. > I can retrieve many informations of objects in a patcher and subpatchers : position, color, type, name... but how can I access to parameters of objects ??? > > Example: > I have many "send~" : "send~ toto1","send~ toto2","send~ toto3"... > How can I find the MaxObj of toto2 ? >
    • Oct 05 2006 | 8:33 am
      Thanks, but my precedent post was not clear. I don't just want retrieve/send value from send~.
      A new example: I have in a patcher many send~, receive~ and "message box": "send~ toto1","send~ toto2","send~ toto3", "receive~ toto1","receive~ toto2","receive~ toto3", "hello my", "name is", "totoetlititi":
      With a JS I want find the position of all this objects, and create a coll with the name of the object (send~ or receive~), its arguments (toto1 or toto2 or...), and its position (X, Y):
      send~ "toto1" 69 88; receive~ "toto3" 218 196; send~ "toto2" 74 116; message "name is" 198 68; ...
      With the method "apply", I can "scan" the objects. With "maxclass", I find the name of the objects, and with "rect", I can find the positon of all this objects. But how can I retrieve their arguments ("toto1", "toto2","my name", ...) ?
    • Oct 05 2006 | 4:30 pm
      I don't believe that this is currently possible. I thought that jasch had an external that did something like this, but I couldn't find it.
      jb
      Am 05.10.2006 um 10:33 schrieb Thomas Goepfer:
      > I have in a patcher many send~, receive~ and "message box": > "send~ toto1","send~ toto2","send~ toto3", "receive~ > toto1","receive~ toto2","receive~ toto3", "hello my", "name is", > "totoetlititi":
    • Oct 05 2006 | 5:10 pm
      On 5 oct. 06, at 18:30, Jeremy Bernstein wrote:
      > I don't believe that this is currently possible. I thought that > jasch had an external that did something like this, but I couldn't > find it.
      Hey Jeremey,
      You mean [posit] ? which works for listing the buffers~ and coll names, but not the arguments.
      Best, ej