js in poly~
Apr 9, 2005 at 7:10pm
js in poly~
Is there a way to access the enclosing poly~ object from within a
Using this js in a poly~-wrapped patcher:
var poly1 = this.patcher.box;
// following results in “TypeError: poly1 has no properties”
// following results in “TypeError: poly2 has no properties”
The documentation references the “subpatcher” method to access
Any help is greatly appreciated,
Apr 9, 2005 at 7:48pm
This is not accessible from any function in js, but it is easily accomplished by sending a message to your js instance from the thispoly~ object.
Oct 6, 2009 at 1:07am
Quote: jkc wrote on Sat, 09 April 2005 15:48
> This is not accessible from any function in js, but it is easily accomplished by sending a message to your js instance from the thispoly~ object.
Joshua, if you get this, or anyone else who knows, could you elaborate on what you mean? I’ve been trying everything I can think of within [js] to get the enclosing [poly~] with the goal of finding [pattr] paths. I think I’ve found a work around, but I think what Joshua alludes to here might be more elegant. Could anyone clarify this?
You must be logged in to reply to this topic.