bpatcher and thispatcher (feature request?)
Is there any way to talk to a parent patch from a [thispatcher] contained in a [bpatcher]?
I noticed that in the helpfile for the [thispatcher] it states: "See the bpatcher help file for the use of the thispatcher object with bpatchers", but I cannot find what this sentence is referring to :( I was hoping for a bit more insight and some unknown tricks…
Also, I could think of something like sending a message such as "script send parent dirty" to a [thispatcher] sending whatever you would have sent to a normal [thispatcher] in the parent, which is only virtual though, as in, the user does not need to create an actual [thispatcher] in the parent patch. Although, I find the first idea more elegant.
Also, thispatcher should be able to report changes made to the attributes of the patch. This could be done automatic or manual polling perhaps. Again, thinking about bpatchers and GUIs, such a feature would benefit many, I believe. The [thispatcher] outputs a nicely structured hierarchy when getting the window states, but the idea has not been followed through. Again, Im a bit annoyed that not everything I can set through [thispatcher] I can also get!
Hope these ideas will be consered. Thanks
Also, you should be able to set up something in js that reports changes to things like window properties.
Though, there is no way to save the .js file with you patch (as its possible with the [coll] object) for easier distribution? I would find it handy if I could just pop open a [js] object and start scripting without creating clutter of several little .js files (just a little luxury…) :)
I have the same problem. THISPATCHER does not work when contained in a bpatcher even when using pControl to open it. Where can we find the js that can fix this? Im surprised THISPATCHER does not work when the patch can be opened with PCONTROL. Going to report this to developers.
Im surprised THISPATCHER does not work when the patch can be opened with PCONTROL.
if you report things to developers, do be clear about exactly what it is you’re trying to report. according to your words, ‘thispatcher’ doesn’t work at all in a bpatcher.
but i’ve attached a patch-set that proves that it does.
if you are then wondering why you can’t specifically open a bpatcher using thispatcher the way it normally does same as pcontrol(which is only a very small aspect of what thispatcher is actually used for), my honest answer is this:
That’s a very unwise use of bpatcher(it ends up simply opening in a separate window with pcontrol… doesn’t make much sense to use a bpatcher in such a case).
Put the patch in a subpatcher(or abstraction), then use pcontrol or thispatcher as usual… bpatcher’s are for when you want a modularly designed interface embedded within a larger interface… if you want to show or hide the bpatcher within that interface, a better way is to hide the bpatcher itself using thispatcher outside of it, also shown in the attachment.
if i’ve misunderstood, though, my apologies in advance and feel free to clarify :)
Definitely makes sense. I understand what difference between the Bpatcher and patcher. I am using the Bpatcher to present a view and allow the user to open the Bpatcher in a seperate with PCONTROL. Now when the bpatcher opens with Pcontrol I need the window to be able to contrain in size. THISPATCHER only seemed to work with Zoom & Offset messages. I could be wrong.
Forums > MaxMSP