Facility Control

 View Only
  • 1.  An array of buttons

    Posted 06-20-2022 13:32

    So... I've run into a problem I thought would be really easy to just fix easy...
    I'm looking to create a parameter, or rather, an array of buttons from a parameter.

    Now I can easilly make a toggle button or something like that from either a string or int array parameter...
    But a simple one-press button that just reverts to not having any selected? Turns out that's harder than I thought...



    ------------------------------
    Aleksander Stalsberg
    Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
    Norway
    ------------------------------


  • 2.  RE: An array of buttons

    Posted 06-20-2022 15:55
    If you are creating radio toggle buttons for a single parameter, you can 'unselect all' by setting the parameter value to a value that is not on any of the buttons. For example, if you have 0=Wipe, 1=Dissolve, 2=DVE, you can change to no selection by setting the parameter's value to something like '-1'.

    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 3.  RE: An array of buttons

    Posted 06-23-2022 19:45
    Thank you James.
    That makes it possible to make this into not radio buttons, but regular buttons created from a choice constraint array as well. 

    Just for anyone that might pick this one up again... 
    Remember to wrap your code in an if-statement check ing if the value is NOT EQUAL to -1... Just so you dont end up making the code loop forever when you det the value back to -1... Yeah, I tried. 


    ------------------------------
    Aleksander Stalsberg
    Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
    Norway
    ------------------------------