Forums > MaxMSP

setting bpatcher file with js

November 27, 2011 | 6:28 pm

I modified the following line from the js tutorial, based on information in the forums:

thesliders[k] = this.patcher.newdefault(k*64,384,"bpatcher",
"@mode", 1,
"@varname", theName);

Wow, it works!!! And separate scripting names for each item!

But I cannot find info on the syntax for setting the file inside the bpatcher. Anybody know what that is??? I tried @patcher_file and @file, and neither works.


November 27, 2011 | 6:33 pm

Never mind, I got it!!! I realized the attributes are listed by name in the help file. I don’t know where it’s explained that the attributes there are the same as the javascript ones starting with @, but it just clicked for me….

Viewing 2 posts - 1 through 2 (of 2 total)