Using premade objects as maxobj's in js

Nov 5, 2007 at 4:51pm

Using premade objects as maxobj's in js

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…

#34468
Nov 5, 2007 at 5:29pm

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…

#116399
Nov 5, 2007 at 7:19pm

Ok, thanks.
I finally got it to work.

#116400

You must be logged in to reply to this topic.