check presentation mode

    Aug 05 2013 | 8:34 pm
    hi max pros, is there a way to check, if a patcher is in presentation mode or not ? thanks, hh

    • Aug 06 2013 | 10: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
    • Aug 06 2013 | 11:43 am
      [quebec] by Nicolas Danet does that.
    • Aug 06 2013 | 5:15 pm
      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
    • Aug 07 2013 | 10: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.
    • Aug 07 2013 | 3:20 pm
      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
    • Aug 08 2013 | 9: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 ?
    • Aug 08 2013 | 5:27 pm
      @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.