Hi all !
I want create objects in an existing subpatcher, but the display is very strange...
Save this JS code in "test.js".
inlets = 1;
outlets = 2;
// find th patcher buggy
if (tt.maxclass == "patcher")
if (tt.subpatcher(0).name == "buggy")
obj1 = tt.subpatcher(0);
// create the object "receive~ buggy" inside the patcher "buggy"
And make this patch:
Bang, and look inside the patcher buggy .... !
Close, and re-open this...
If I create the subpatcher in JS, I have no problem when I make object inside this.
The mistake seems to be that I create object in a "closed" subpatcher.