scripting inlets and outlets


    Jun 27 2006 | 12:32 am
    My collegue is making an abstraction that dynamically generates its inlets and outlet via scripting. The problem with this approach is that connections to this abstraction are not preserved when you save and reopen.
    Our two workarounds are either to use javascript or to have the maximum number of inlets saved as part of the abstractions, script the connections needed and then use script to delete the unnecessary inlets.
    Is there a cleaner way to do this? Abstraction and help patch below.
    thanks,
    mzed
    -=-=-=-=
    save as "OSC-unroute":
    Save as "OSC-unroute.help":

    • Jun 27 2006 | 5:33 am
      Dear mzed,
      i forgot all my previous ideas and patches relying on a dynamic
      inlets/outlets creation via scripting. As you see, too slow
      instanciation to build & connect the inlets/outlets.
      And no, there's no cleaner way i know but this workaround about having
      hundred inlets to delete.
      f.e
      f.e chanfrault | aka | personal computer music
      > >>>>>> http://www.personal-computer-music.com
      > >>>>>> |sublime music for a desperate people|
    • Jun 27 2006 | 9:32 am
      What about dynamically deleting, creating an connecting your dynamic
      abstraction.
      /J
    • Jun 28 2006 | 3:00 pm
      mzed wrote:
      > Our two workarounds are either to use javascript or to have the
      > maximum number of inlets saved as part of the abstractions, script
      > the connections needed and then use script to delete the unnecessary
      > inlets.
      Deleting unused ins and outs is what I do with all of my abstractions
      which have varying numbers of them. Ugly, but works...
      The only solution would be a change in the behaviour of Max itself by
      creating bogus ins and outs instead of the known error message of
      missing blahblah and cutting the connections.
      Yes cycling, if your listening, this would be a feature request which
      would help around some other nasties as well...
      (Ever misstyped an object which had been connected before?...)
      Stefan
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com