I am quite new to JS in Max and have a hard time figuring out what is possible and what not (if there is anything similar to a JavaDoc floating about, could anyone please point me to it since I don't seem to be able to find it... thanks!)
In any case, I want make an abstraction, that is called by a bpatcher make the bpatcher embed itself into the parent patch. That is, I am trying to tick the ckechmark for "Embed Patcher in Parent" in the inspector automatically.
The problem is, I have no thispatcher in the parent patch I could send a message to, and I cannot give the bpatcher a scripting name to send it via sendbox (if I would get to that point, I could tick the checkmark by hand already anyway and there is no need for my question here).
The reason I am posting this question in JS is, that I am aware that you can retrieve and change the size of the bpatcher window by calling "this.patcher.box.rect;" in JS and assigning a new value to it. Now, I am wondering if there is any similar way to tick the checkmark, but I don't know if there is a similar property to access. Any way to change the XML structure of the maxpat file perhaps?
Thanks in advance!