Using premade objects as maxobj's in js


    Nov 05 2007 | 4:51 pm
    Does anyone know if there's a way to assign a pre-existing object in a patcher to a maxobj in a js? The only way I can find is to create them with the js, and that doesn't work for my purpose...

    • Nov 05 2007 | 5:29 pm
      Hi,
      you can use patcher.getnamed:
      getnamed (name) Returns the first object found in a patcher with the given name. The name is a local name as specified by the Name... dialog in a patcher, not the name of a send or receive object. You can also set an object's name using the varname property of a Maxobj.
      best, nesa
      On Nov 5, 2007, at 5:51 PM, Matt Rose wrote:
      > > Does anyone know if there's a way to assign a pre-existing object > in a patcher to a maxobj in a js? The only way I can find is to > create them with the js, and that doesn't work for my purpose...
    • Nov 05 2007 | 7:19 pm
      Ok, thanks. I finally got it to work.