HISE Logo Forum
    • Categories
    • Register
    • Login

    Initial loading values of GUI elements in aax when plugin is opened....

    Scheduled Pinned Locked Moved General Questions
    25 Posts 6 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Christoph HartC
      Christoph Hart
      last edited by

      Alright, all important controls have a defaultValue property:

      • Sliders
      • Buttons
      • Comboboxes (Indexes start at 1)
      • Panels
      • Viewports (Indexes start at zero, no particular reason other than being sloppy)
      • SliderPacks (the value will be used for all sliders).

      Development branch only :)

      orangeO Dan KorneffD 2 Replies Last reply Reply Quote 2
      • orangeO
        orange @Christoph Hart
        last edited by

        @christoph-hart Thank you, great!

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff @Christoph Hart
          last edited by

          @christoph-hart 👊

          Dan Korneff - Producer / Mixer / Audio Nerd

          Dan KorneffD 1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff @Dan Korneff
            last edited by

            I know this is an old thread. I'm using defaultValue to set initialized settings for AAX, which is working just fine for knobs... but not for buttons. I have a button set to defaultValue 1 (and it's turned on when compiling) but pro tools loads the buttons set to off. Any way around this?

            Dan Korneff - Producer / Mixer / Audio Nerd

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Dan Korneff
              last edited by

              @dustbro Strange... Are they saveInPreset:Enabled?
              What about other formats (VST, AU)?

              Can't help pressing F5 in the forum...

              Dan KorneffD 1 Reply Last reply Reply Quote 1
              • Dan KorneffD
                Dan Korneff @ustk
                last edited by

                @ustk said in Initial loading values of GUI elements in aax when plugin is opened....:

                @dustbro Strange... Are they saveInPreset:Enabled?
                What about other formats (VST, AU)?

                saveinPreset is Enabled. I'm just now noticing that the controls loading properly have been linked to processors thru the Interface Property Editor. The buttons in question have been scripted.
                I'm gonna try this and see what happens

                .set("defaultValue", 1);
                

                Dan Korneff - Producer / Mixer / Audio Nerd

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @Dan Korneff
                  last edited by

                  Doesn't seem to work.
                  @Christoph-Hart any tricks to get a button to default ON in protools? I've scripted the defaultValue, but it still initialized as OFF.

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @Dan Korneff
                    last edited by

                    @dustbro button.setValue(1);

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    Dan KorneffD 2 Replies Last reply Reply Quote 1
                    • Dan KorneffD
                      Dan Korneff @d.healey
                      last edited by

                      @d-healey That doesn't work either. 🤔

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @d.healey
                        last edited by

                        @d-healey I was calling this after declaring the variable. It doesn't seem to affect the value of the button either way when hitting F5. Where should this be called?

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey
                          last edited by

                          After the declaration. My thinking was something wasn't working with the saveInPreset so maybe that would resolve it. Does this problem only happen with AAX?

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          Dan KorneffD 1 Reply Last reply Reply Quote 0
                          • Dan KorneffD
                            Dan Korneff @d.healey
                            last edited by Dan Korneff

                            @d-healey here's a simple version. I can't seem to change the value of a button?

                            HiseSnippet 718.3ocsU0taSCCE0tqdhVXSaR7.Dse0IMlRgsARSHF8KTErsJxXh+M443tZsD6HGmAUHdT3cj2.35jzlLnpzEIxux8ii8Im6GYjVw3wwJMB23hoQbD9IDuoRyjtSnBIZXODdSxozXCW6j4pyzHZbL2Ggwq8NqCbi5nzme9lNz.pjwKbgPWpDL9GDgBSg2Qm7dQPv.pO+BQXorO3jgLkrqJPk.7YMhKJhxtkdC+LpMsZDDd899BiR6YnFdLBWuixep2D0WjY4eoHVbc.2ZzF4AGTl6Ap.eKisdQcmHB7GM66NFAmxnBUXsLU3ojSE9h49KTisRC3TfnrdfqsL509eSO2EQObI5UOidaS7XZQjoHhkaOlLTBEpwTnDTlVY4hpsElzUAYHM6GRukOPCFyQz5HW28bNz0c2i2n4FMgBQrw4Np1oShwnjscdsyLv2vMcUgQJIXzZm736jgK2Z+Xt4RZPBuU6cOdbhjYDJoiRdlxvOW1Z2leqYileuoyeFZ73EFydyZUP.Wuvv11H8x.1RlDdMWuG7AAbZdhfdd+B15qVAikIDkRTIGJElyi341KuiCkqj1haNCgTMok1MyKsYBIR.GRCRtphRoe4wKzmF1iZnyNH3Lg6IhqMB6mCtG+NX7KqmoAoGO9ViJJM27xGn.qv09UDlfkvsM09xORmg+qdRXxP4mDPM2ebwtiHO.TRtWeos2SFKLSKuC4ALC4txi3qJc2lLRXXSVLeqs.9BB++a9luQZCR+wi4LSAYqSF74pt94APkOpRLB4MmRMZgsQ3rjPOXAMiCLQJ4Aw1dhZ1l5LaWqsUY73R+TieAO4Aaasw4AaOKHJjxzpqXYiB1cdOJ0CvIY5p+Fv+f.am4S.Dh69tnPXU7ULlUJdFv8Ei44U.yKp.lCp.lCq.lip.lWVALuZoXr+E7sIFUX1XB3XT+zMQXbeIE5xR6HQ+FLl7NlA
                            

                            I can change it within an inline function, but calling setValue() after declaration doesn't work

                            Dan Korneff - Producer / Mixer / Audio Nerd

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @Dan Korneff
                              last edited by d.healey

                              @dustbro Does it only happen with AAX or does it also happen with VST/AU?

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              Dan KorneffD 1 Reply Last reply Reply Quote 0
                              • Dan KorneffD
                                Dan Korneff @d.healey
                                last edited by

                                @d-healey This is just AAX. The button initializes properly with VST AU

                                Dan Korneff - Producer / Mixer / Audio Nerd

                                1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey
                                  last edited by

                                  Then I don't think there is anything we can do from within HISE to fix this. @Christoph-Hart any ideas?

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  1 Reply Last reply Reply Quote 0
                                  • Dan KorneffD
                                    Dan Korneff
                                    last edited by

                                    @Christoph-Hart I figured it out.
                                    If isPluginParameter is enabled on a button, AAX will default it's value to 0 even if it's set to 1 when you compile

                                    Dan Korneff - Producer / Mixer / Audio Nerd

                                    d.healeyD 1 Reply Last reply Reply Quote 1
                                    • d.healeyD
                                      d.healey @Dan Korneff
                                      last edited by

                                      AAX will default it's value to 0 even if it's set to 1 when you compile

                                      Does this happen in all AAX hosts? (are there any hosts other than pro-tools?).

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      ustkU 1 Reply Last reply Reply Quote 0
                                      • ustkU
                                        ustk @d.healey
                                        last edited by

                                        @d-healey AAX is PT only

                                        Can't help pressing F5 in the forum...

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @ustk
                                          last edited by

                                          @ustk What a useless format :p

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          FortuneF 1 Reply Last reply Reply Quote 0
                                          • FortuneF
                                            Fortune @d.healey
                                            last edited by

                                            @d-healey said in Initial loading values of GUI elements in aax when plugin is opened....:

                                            @ustk What a useless format :p

                                            Yeah, it's so useless.
                                            Because it's been widely used by so many pros and legend engineers.
                                            And also it is almost the main mixing environment standart of the Hollywood film and music industry

                                            😅 😂 😈

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            22

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.3k

                                            Posts