Initial loading values of GUI elements in aax when plugin is opened....
-
There is an issue with AAX fx plugin initial loading settings.
Normally initial loading settings of GUI elements in the exported VST and AU plugins (in host) are from saved xml file in HISE.But AAX plugins doesn't load like that. They load with default values of the every GUI element.
-
Can we load pre defined user preset when plugin is opened? (I'm using directly
Engine.loadUserPreset("BankX/CategoryX/Preset 1");
format in on init but it doesn't work) -
Or you can change default values of the sliders, like in initial settings that you want. But what about buttons and combo boxes? because they don't have default values? What am I missing?
-
-
The
defaultValue
property of sliders should be used there, but buttons and comboboxes are indeed just set to zero.I got away in my cases because in my projects, every button was off by default, but I might add a
defaultValue
property for all other component types soon. -
It would be great @Christoph-Hart . Thank you so much bro...
-
@christoph-hart a defaultValue property for all other component types would be awesome!
-
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 :)
-
@christoph-hart Thank you, great!
-
-
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?
-
@dustbro Strange... Are they
saveInPreset:Enabled
?
What about other formats (VST, AU)? -
@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);
-
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. -
@dustbro
button.setValue(1);
-
@d-healey That doesn't work either.
-
@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?
-
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?
-
@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
-
@dustbro Does it only happen with AAX or does it also happen with VST/AU?
-
@d-healey This is just AAX. The button initializes properly with VST AU
-
Then I don't think there is anything we can do from within HISE to fix this. @Christoph-Hart any ideas?
-
@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