Nested Objects in Variables Field -- Bug?

Hi,

Are we not allowed to have nested objects in the Variables field. Here is an example:

JS{{
    var props = {}
    props = {
        "n": 0,
        "text": "NA",
        "faderValue": 0,
        "color": "#25282B",
        "ctrl": "^wave-square",
        "visibility": true,
        "out": [],
    }
    props["values"] = {
        "mute": 0,
        "solo":  0,
        "listen":  0,
        "edit":  0,
        "knob":  0,
        "fader":  1,
        "read":  0,
        "write":  0,
        "record":  0,
        "monitor":  0,
        "selectedTrack":  0
    }

    return props
}}

But when I call it from the value property of my fader for example using the following:
@{parent.variables.values.fader}

I get undefined.
image

However,I can get the values object, i.e. calling the following:
@{parent.variables.values}
I retrieve the computed property of:
image

Cheers,
DMDComposer

Nested objects are supported, but the inheritance syntax (@{}) doesn't go that deep, you can circumvent it with

#{@{parent.variables}.values.fader}
1 Like