No internet connection
  1. Home
  2. How to

toggle stream deck button without code

By Ricardo Cutz @Ricardo_Cutz
    2021-10-19 20:10:59.085Z2021-10-19 23:00:36.812Z

    I want to create an button to alternate between 2 presets in on the Izotope Rx 9 editor (corrected).

    I was able to create the macros to change between presets, but are 2 macros with 2 buttons. My ideia was to have just one button.

    It would change from the "default preset" to the second preset and the, when pressed again come back to this initial preset and so on.

    I did some research, found it, but does not understand what to do
    How to make a toggle Stream Deck button

    thanks

    • 9 replies
    1. Kitch Membery @Kitch2021-10-19 22:39:44.744Z

      @Ricardo_Cutz

      This should do what you are after;

      function setPreset(name) {
      
          const firstAudioSuiteWindow = sf.ui.proTools.firstAudioSuiteWindow;
      
          firstAudioSuiteWindow.popupButtons.whoseTitle.is("Preset").first.popupMenuSelect({
              menuPath: [name],
          });
      }
      /**
       * @param {Object} obj
       * @param {String} obj.presetNameA
       * @param {String} obj.presetNameB
       */
      function togglePreset({ presetNameA, presetNameB }) {
          let presetBtnTitle = sf.ui.proTools.firstAudioSuiteWindow.popupButtons.whoseTitle.is("Preset").first.value.invalidate().value;
      
          switch (presetBtnTitle) {
              case presetNameA:
                  setPreset(presetNameB);
                  break
              case presetNameB:
                  setPreset(presetNameA);
                  break
              default:
                  setPreset(presetNameA);
                  break
          }
      }
      
      togglePreset({
          presetNameA: "Preset 1",
          presetNameB: "Preset 2",
      });
      

      Let me know if you need me to explain anything.

      Rock on!

      1. RRicardo Cutz @Ricardo_Cutz
          2021-10-19 22:58:27.296Z

          Thanks @Kitch!!
          it is awnsome! Even haven't try it yet!! :)
          I notice that you sent it to Pro Tools, it was my mistake, since I'm trying to do it on Izotope Editor, Rx 9.
          So I guess there is need to change from Pro Tools to Izotope, right?
          I usually have a bunch of processors available and this kind of function would be nice to be replicable and assignable, but I notice that it is also refering AudioSuite on the code. It is necessary to be changed too, correct?
          Also Should I enter my preset name on "preset 1" and "Preset 2"?

          Sorry, I notice that I mentio. audio suite... I should have mention Izotope Editor from the bgining.

          1. Kitch Membery @Kitch2021-10-20 00:14:10.776Z

            Ahh, yes the above script will not work for the iZotope editor, it was for switching presets in the frontmost AudioSuite plugin. When you say switch between presets, which iZotope RX 9 module are you wanting to switch the preset in? Or is it something other than a module?

            1. RRicardo Cutz @Ricardo_Cutz
                2021-10-20 00:41:42.428Z

                I was developing this workflow specifically to Dialogue Isolate... But I do like the idea, and it would be nice later on, to expand it to other modules. Usually, I do have all those modules open at the same time: Dialogue Isolate, D-click, d-rustle, spectral repair, and gain.

                1. Kitch Membery @Kitch2021-10-20 01:14:51.563Z

                  Nice. I'll take a look when I have a chance :-)

            2. In reply toKitch:
              RRicardo Cutz @Ricardo_Cutz
                2021-10-20 00:46:11.083Z

                @Kitch this script could be used to any plug-in window opened in pro tools? I mean instantiate plug-ins in tracks? Or is it possible to create something to quickly recall presets from any plug-in? There are plug-ins like Cinematic Rooms or Exponential Stratus that do not use the regular Avid present drop-down menu. They have their particular lists... Are those lists accessible somehow?

                Usually in Features Film, at some moment in the mix, we start having some presets tailored to the movie that repeats itself in various forms. It would be nice to create a deck to accelerate this preset recall on automation passes.

                should I open a new thread to this?

                1. Kitch Membery @Kitch2021-10-20 01:12:14.067Z

                  Unfortunately, I believe that Cinematic Rooms or Exponential Stratus's presets are not accessible by SoundFlow at this time as the UI elements within the plugin window are hidden... However if you are able to save the preset via the Pro Tools Preset Menu within the plugin window, my script should work.

                  You may be able to get access to it via mouse clicks but this method is not as stable/robust. To learn more about how to do this. please watch this video to learn how and when to use the Macro Action "Mouse Click Relative to UI Element".

                  1. RRicardo Cutz @Ricardo_Cutz
                      2021-10-20 02:03:45.638Z

                      I'm already using it! Have watched it a few days ago. pretty nice feature.

                    • In reply toRicardo_Cutz:
                      Kitch Membery @Kitch2021-10-20 01:15:48.968Z

                      BTW the script I shared is only for Audiosuite plugins. :-)