So I have a main patcher (mainpatch), and in it there is a sub patcher (subpatch).
I want to create an object (let's using button for example) inside that subpatch. How do I do that with scripting?
To make an object in the mainpatch I have been using: this.patcher.newdefault(200, 200, "button");
I tried giving the sub patcher a scripting name (subpatchscript) and using:
var sub = this.patcher.getnamed('subpatchscript');
sub.newdefault(200, 200, "button");
but that does not do anything. Any suggestions?
Thank you very much for the help.