Syntax for scripts and properties

A couple of quick format questions -

  1. Are '@{}' statements OK in properties? Like:
    colorWidget: @{Looper@{this.variables.n}ActiveColor}

  2. What's the correct way to format an XY script? I currently have:

set("@{this.id}X", value[0])
set("@{this.id}Y", value[1])

Yes, they are ok except in scripting properties.

What's the correct way to format an XY script?

Well I can only answer for that specific example:

var id = getProp('this', 'id')
set(id + 'X', value[0])
set(id + 'Y', value[1])

Thanks again - you're a gentleman and a scholar sir.

Where's your Patreon?!

You're welcome (here it is :))

1 Like