One button on , The other off
-
Hello All!
I have two buttons that hide and show various controls.
Is it possible to set the script so when Button 1 is on, Button 2 is off and they swich when you click the button.
For example: Click button1, Button2 shuts off. Click button2, and button1 shuts off.
Thank you!
Mitchell -
Is it possible
Of course, this is HISE!
There are numerous ways to do it.
Probably the simplest way is to set the buttons' radio group property.
But if you want to script it, here's one way:
HiseSnippet 847.3ocsV0sSSDDEdlBqwVUhj3Cv.WPVBHoEQzDzXkB0zn.MVjXBgPlN6T5DlclM6NKRiwDeN7Je97JeCzyL6V5BzfPSrWztme9Ny2L624LscrlwSRzwHb48GDwQ3G50YfxzuQepPgZsEBOi2NzDCOlj4ZyAQzjDd.Bim5cVG3xSibe98a1jJoJFejKD5.sfw+fHTXF4sc82Kjxlz.99hvBYuV8VLspgVpSA9LkWUTDkcJ8D9tTaZk7P36scfvni6XnFdBjyl5fAc5q+hJK+CDIhtRt0nFpCTnL2nF8Exf1C2qIHDd51i14Sksyeh2Nh.wE9GcB7XW.xHDEOCvktIJU6NPIbAJMcFkl0qCKVDYFEwxmG30RAuP5Qgi5hTIKWToeg8ZngLTlUBomxaFCFWfve8pUWl.es3FUp.G2IFR2TiAdf7ZxgGAN6oiI9Bvp5FDA4UjUgeVZoEq70Jkyybknzj99CWiS3lF5vHsBL7meSWJySVxVikH0VbQXgFB7PwQqjXSWYh0xFTorK7F1Wqxhm6G.7sJUDJoPwI8RULiPqHWIIe1v0bYxYTYJ2QPolQkDgJfeNrAFRWm8d8FAoHklyE0wqCr0weNW4HKrPdcA1TfD6pM78T9tUCnI4pg50arwxYsjGO1v1Fg3aBnuJMrKOt3d0lHnTtr76d2N4GK6cWgD0pVJgYuHdtcSsLvJqrOecwJJ+kOHaKkyPHUiSzNStnMSIfDPQJ6kYTC4newADn6.7UGBGOE5Ss1hZn11lbp.zKhGaD1SA7V7yf4NYMQk81hmbpQG43ZtB.N3tEr8bD1C+CfjCrOXxn6cnBqZqP9d8ml5Ctv36GVGc81cXPiNHURMWd5icLad.PSboVdaasJQXFTbL7cXjT0abjzskhy50VXX8GOGKMFNZkM+G3X9f7G4scudblYDAm1q4mmzo1+ik+i5TiPcxNTSrvJW1MMrCb+EiCqtRwkIVkSIqvIytp01dBzgqBbF+A9jGrl0FmGr1vfnPJKVeLKqQwdUw8cd.Nob2LVFthFrIWzd44UckpnP3VqiYL61+oPS73wr5Df4YS.l0l.LOeBvr9Df4ES.lWdiXr+gg2lZzgYsCfi1a6lWgwaqnfxxoBQ+E0v+laB
-
@d-healey Thank you so much for your response!
How do radio groups work? I'm looking in the documentation and I don't see it...
do I assign all the parameters associated with the button on the radio groups? or do I make them different numbers?
-
@d-healey i already have "buttons" used in my script any way i could easily change "buttons" to anything else, im trying but it wont compile
-
@FatMitchell Radio Group Button are just a group of buttons that won't be active at the same time and only one button of the group will be always active, you can find the Radio Group Number in the property editor of the buttons.
HiseSnippet 810.3ocsVszSaCDDd2jrTRZAUj5wdHGoRzpjPf1Sso4AnnxiTBEUINfVr2fWg8tV1qAhppD+J5k9mr+CZm0NI1AbPIlRN44w2Le6LS1Y64IMX99RODt3wCcYH7KH8GJTVsrnbApaaDdUx9TeEyqbjplCco99LSDFmeWsBbwBnve+4SMo1TgAKVEBchjav1i6vUwZ603Kba6cnlri4NI7tditFRQKosL.3SdREjK03R5ErCnZ2xQP3k5XxURu9Jph4ivEZJMG12RdsHx+S397ysYZgpn9PfhTuiz1TyXsVTKKtsYuwmaeDDkdwUg7QUgWQ1maxmnOtZ7xPCkiQjrdfyMM8xOE8pljdURPuTnDNAkJDQo0H8M73tpXKZ97bRWAzbFPgxdRpD4KB+axf.gghKEkkhCjJ1gh0eSoeTpXoeVp7cMMXPp1ZIEJOosMyKUy5ln2CAbcQfy4LuMJeE0NfMwQ3jMc4hL6xUxtILinXBUBGkhtBt5PWlXV8XTqHPPocoQrBbUEVXWcTgsYfRIEHNT+JRhDphBobxYbzB.u1X3DbH5E.5lYGZ8rCcqG24c66j4u0sMUQ0iyiJ+PKwk4o35tMtM6J3tgng6hj1L+KURWDd4VRGWoP2rvj4nCcyD1d6oMFFK70FdTStbWOYf63wh3H+r4n4MqHeZiq4lJK8w7VP1hwuvRSV7qAoGWR27dIkf+E78SVBqqSHAuAzvV7jUaAS1VSkrLTNmNgj4XfLsDd2IiTi5Jih5dzyY1gAcYR32ybhC8wFJ1M58bjizwub0EJt0Riq2Kl.Wu+pAXojzLvlpldSkd87HCv8wSsdPuzP3yUCS9W8+aqulWJtFoGWYXkNGykBGgqRdJ33nk9qP5LX.yPESvBjc99SyFdzQx.EWbw9TkGW23OHvoO7tGCFjcgfYq2Ghyou9NRtx3aU6yDlgB+E9MxXUsLdjwpiMhbnFdxyLht.W+rhkC0.bRD9hphvS6.4xSVyQHUdWEjC7BmyLLzG+2ByvoioVFvrYFvTOCX1JCX1NCXdeFv7gGDi9wkeNPIch96.nnWmvcnXbGAElrBmBQ+CfIbDfq
-
@Soundavid Got it thank you!!! changed radio group to "2" on both buttons. Cool Feature! Thank you!