Matrix Props Using OSC Listener With Index

Hi,

I'm messing with Matrix's more, and trying to get this OSC listener to work as the label using the index from the matrix. I've copied the example from a previous post on [here].(Matrix fader, display labels at the bottom - #7 by Open-Stage-Composer)

This post created a fader of sorts, and used the matrix to clone the faders. Here is the props for the matrix. I must be confusing the syntax again, but I can't get the OSC listener to work specifically when trying to get the matrix index.

JS{
    var props = {};
    var labels = ["O FX 1", "O FX 2", "A Level", "B Level", "Low Cut", "Res", "Pan", "Level"];
    var colors = ["orange", "orange", "pink", "pink", "aqua", "aqua", "grey", "red"];

    // Ensure widgetId is correct
    props.widgetId = "cntn_CLONE";

    // OSC Listener - Not Working
    var text = OSC{/cubase/mixerChannel/[$]/label, #{$}}
    
    // OSC Listener - This works
    // var text = OSC{/cubase/mixerChannel/0/label, #{$}}

    // Define nested properties
    props.props = {
        variables: {
            text,
            n: $ + 1,
            def: $ * 2 + 50,
            color: colors[$],
            out: [1, 50 + $],
            ctrl: [`ctrl ${50 + $}`],
        },
    };

    return props;
}

Any suggestions?

Cheers!

sorry OSC listener won't work inside matrix props :
you have to use external variable and @{variable_1} inside the matrix

1 Like

Ah, I wasn't aware this isn't possible. Thank you so much for informing me @zoltan and sharing the solution from your other post.

Cheers!