Toggle Button States & Automation
- 
 Hello friends, Have a button that turns my plugin on and off. However, when automating this in a DAW, it shows up as a floating value (%100 to 1%). Just wanted ON OFF states for my toggle automation. Is this achievable? Tried a couple of things to no avail. Any help is much appreciated. Thanks 
- 
 @aralbar so buttons have a 0 or 1 value - what you are describing seems to be (at best guess) a slider... 
- 
 @Lindon All parameters have a range of 0 - 100 I think, regardless of the control type. I recall it being brought up on the forum a while back. 
- 
 @d-healey said in Toggle Button States & Automation: @Lindon All parameters have a range of 0 - 100 I think, regardless of the control type. I recall it being brought up on the forum a while back. so its a DAW issue then not HISE..? 
- 
 @Lindon Maybe, I'm not sure 
- 
 @aralbar You could just script some hard values. inline function onYourButtonControl(component, value) { if (value == 0) // Up { YourTarget.setValue(0); // or whatever value you want... } if (value == 1) // Down { YourTarget.setValue(1); // or whatever value you need... } }; Content.getComponent("YourButton").setControlCallback(onYourButtonControl);But im curious.... What are you turning off that even accepts a value from 1-100 though? Any built in buttons only accept a value of 0 || 1as far as anything I've seen so far. 
- 
 @Chazrox It's parameter automation in a daw. 
- 
 Thanks all for responding and suggestions. Will try a couple more stuff and keep you posted. I also thought that buttons had two states (0 or 1) but that isn't the case; at least from an automation parameter perspective. I've definitely used a button not a slider and the automation values are all from 0 to 100. On above 50 and off below. Most plugins do allow ON OFF automation states so was trying to achieve that. 


