Handling coll objects from inside js objects
I had posted this question under "MaxMSP" section, so far got no answers, perhaps I may try to duplicate it in this section:
AFAIK this is not possible.
You could use patcher scripting methods to set and retrieve data
remotely, but that’s not the same as accessing the data structure
powerful data structures possible in this language?
On 26 mai 08, at 11:02, emerson wrote:
> Could anyone give me ideas or inform me about a method for how I can
> reference/handle the data structure in "coll"s using js code, within
> js objects at various parts of patches?
An easy way would be to be to give your [coll ] instance a name (let
say "mySuperColl_hider"), define in your js file a loadbang function
function loadbang ()
myColl = this.patcher.getnamed("mySuperColl_hider");
and send messages to the coll like this:
If you need to get values, you may have a look at this thread:
I know Jeremy B. compiled a [js] version with a get function, but I
dont know wether it has made its way to a public release…
In Max5, things may have changes, but I couldn’t find any serious
Centre de Recherches et de Formation Musicales de Wallonie asbl
Thanks very much for the replies.
Considering your advices, it seems easier not to get involved in ‘coll’s but staying more in js arrays from the start.
Again, thanks a lot for the advices.