Forums > MaxMSP

check presentation mode

August 5, 2013 | 1:34 pm

hi max pros,
is there a way to check, if a patcher is in presentation mode or not ?
thanks,
hh


August 6, 2013 | 3:33 am

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


August 6, 2013 | 4:43 am

[quebec] by Nicolas Danet does that.

https://github.com/nicolasdanet/Quebec


August 6, 2013 | 10:15 am

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


August 7, 2013 | 3:00 am

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.


August 7, 2013 | 8:20 am

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


August 8, 2013 | 2:10 am

wow… i wasn’t aware of that "new view" feature… now it just scares me… what’s the use of this ? like, livecoding show ?


August 8, 2013 | 10:27 am

@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.


Viewing 8 posts - 1 through 8 (of 8 total)