bpacther instantiation


    Apr 17 2009 | 6:20 pm
    Hello
    Does anyone know if there's any way to instantiate a bpatcher file (I mean a patcher intended to be used inside a bpatcher) from a regular object box, like it happens with the GUI objects?
    Also, is it possible to send messages from a nested patcher to its parent bpatcher? I'd like, for example, to be able to resize a bpatcher by trigering events or buttons from inside its subpatch.
    thanks
    rui dias

    • Apr 17 2009 | 6:57 pm
      Have a look at the patch attached to the post I've linked to below. The javascript file does the resizing business. You might want to look at creating object prototypes to load up [bpatchers] with the abstraction already loaded inside.
      lh
    • Apr 19 2009 | 1:33 pm
      Hi lh
      thanks for the reply. I'll try to adapt the js to my needs but it will take me some time, as I'm not very used to js.
      But anyway, does anyone know if it's possible to do something like this without javascript?
      rui dias
    • Apr 19 2009 | 2:15 pm
      rdias wrote on Fri, 17 April 2009 20:20Hello
      Does anyone know if there's any way to instantiate a bpatcher file (I mean a patcher intended to be used inside a bpatcher) from a regular object box
      you can create a bpatcher object by typing it in a box, but not including the source file.
      this could be done better by scripting the bpatcher. for max 4.x, send the following message to a [thispatcher]:
      "script new uniquename bpatcher 0 0 100 100 0 0 filename 0"
      eventually followed by
      "script bringtofront uniquename"
      in max 5 no idea.
      Quote: Also, is it possible to send messages from a nested patcher to its parent bpatcher? I'd like, for example, to be able to resize a bpatcher by trigering events or buttons from inside its subpatch.
      absolutly possible, just try it.
      the other way it is more problematic: under circumstances you can see loadbanging from a bpatcher to its parent fails. a [pipe 0] before the bpatchers outlet or send usually solves it.
      -110