check presentation mode
hi max pros,
is there a way to check, if a patcher is in presentation mode or not ?
thanks,
hh
hello maxlist,
i am still trying to solve my problem, getting the information, if a patcher is in presentation mode or not.
i also tryed to use javascript.
and it outputs an object.
perhaps somebody knows how to parse the response of the
this.patcher.presentation call
if i print out this:
this.patcher.presentation
i get this in the message window: jsobject 311634832
if i print out this:
this.patcher.presentation.toString()
i get this in the message window:
function presentation() {
[native code]
}
or is there a secret message i can send to the thispatcher object, which does the job ?
best,
hh
[quebec] by Nicolas Danet does that.
https://github.com/nicolasdanet/Quebec
thank you very much LSKA !
thats exactly, what i need :-)
to cycling crew:
it would be a great feature, if there would be a possibility to get this basic info with standard objects.
a good place could be an addition to the [thispatcher] object ;-)
best,
hh
The problem is that objects and views are separated. An object can be displayed in multiple view so in this case quebec output can't be correct for every view ;-) If you want the truth about presentation and nothing but the truth, you have to do it in C.
hi emmanuel,
thank you for looking into this.
i think the standard case is that you have a single view.
personally, i never used the feature of having multiple views.
what about this:
send the message getpresentation to [thispatcher] outputs the presentation mode of the first view.
if you want the presentation mode of a specific view, you could append an additional int to specify which you want to get.
something like getpresentation 1, getpresentation 2, getpresentation 3 ...
c should not be the problem :-)
best,
hh
wow... i wasn't aware of that "new view" feature... now it just scares me... what's the use of this ? like, livecoding show ?
@Nicolas: I hardly ever use multiple views, but I can think of lots of reasons for using them. Exempli gratia:
- While developing a patch, have two presentation views, one at 400% for fine-tuning the positioning of individual objects, with the other at 100% (or smaller) to see the entire effect.
- For a gig, have one view in presentation mode, full-screen on a beamer, with the other one in non-presentation (with lots of sliders, number boxes, toggles, and other UI objects you don't want the audience to see).
and so on.
@Vichug: I believe the officially sanctioned use for multiple views is whatever you want to do with them.