I have a simple UDT for a button with a few boolean sub-tags:
I’m trying to make a custom button which binds to this UDT in the dropConfig:
The binding to the tag parameter is bidirectional:
All sub-tags feed through to the view just fine but when I try write back to them via scripting, e.g.:
self.view.params.tag.Value = True
…it only gets as far as writing to the view parameter, and doesn’t get through to the tag to which it is bound. I know this isn’t the “proper” way of writing a tag via scripting but I can’t get the path from this parameter either, as far as I can tell.
I know the alternative is to bind to the path instead but this becomes very clumsy with indirect bindings as you have to do a lot of additional string formatting by hand, which is made even more clumsy by the weird offset between the mouse pointer and the cursor in the text editor.
Thanks in advance for the help!
Version: 8.1.0 (b2020110211)