Pass the control id as a variable?

  • Hello!

    I'm designing a control panel with 640 buttons (gulp).
    Each button sends a slight variation of the same command, depending on which button is pressed.
    Is there a way for multiple  buttons to pass its control id # to the one actor, as opposed to having a 1:1 relationship between controls and actors?
    Thanks a lot!
  • Tech Staff

    There are ways to have multiple buttons trigger multiple actions.
    You can create a series of inputs to your action (action being whatever you want to button to effect).
    For example, you might connect 3 'absolute value' actors to the input of your action.
    This was you can define a different Control ID for each of the 'absolute value' actors, that will then pass the value to your action.
    So in this manner you can have the same action triggered by multiple buttons.
    You can also, define the same control ID (button ID) on multiple action inputs. This does not have to be a 1 to 1 relation.
    Using these 2 methods, together you can create complex matrix's of triggered actions.

    PS: I use the 'absolute value' actor was just an example, but it does work well for button values.