#Set offset from bindings

1 messages · Page 1 of 1 (latest)

torpid wind
#

I show a server form and then customize it using JSON UI. I want to set the offset from bindings. When I used values like 5% it worked perfectly, but when using #x and #z it's not working anymore.

Here is my binding:

{
    "binding_type": "view",
    "source_property_name": "((#x_text - 'x=') * 1)",
    "target_property_name": "#x"
}

And I tried doing just "offset": ["#x", "#z"]

golden shard
#

bindings are only for properties. not for items in a array. u can't do that.

torpid wind
#

Yeah, currently I'm trying a different approach roughly like this

        "variables": [
            {
                "requires": "(#x_text = '4')",
                "$el_offset": [
                    20,
                    0
                ]
            }
        ]

But that still doesn't work somehow (I confirmed, that #x_text is bound correctly, I used it as text of the label)

torpid wind
#

is there any way to influence variables through bindings?