Hi,
In a Matrix Buttons (toggle) i need to define two props.address (to send osc command):
- if the button is off do this
- if the button is on do this
Anyone can help me?
in the matrix props i have this code:
JS{{
var props = {}
props.mode = "toggle"
props.label = "Q"+[$+1]
//props.address = "/cue/"+[$+1]+"/sart"
props.on = 1
props.off = 0
//trying to verify the button class selector, but it's not wooking
if ((".button-container.on")[0]){
props.address = "/cue/"+[$+1]+"/start"
} else {
// Do something if class does not exist
props.address = "/cue/"+[$+1]+"/panic"
}
return props
}}
i made a lot of research in the foruns, but didn't find a solution.
thanks!