My issue is that I do not know how to create / modify the BoundValue datatype. Setting the opcItemPath equal a string of the desired path does not work. I have to manually go back into the UDT and apply the change.
There’s not any way to construct bindings in scripts, for any part of Ignition. You would have to instantiate an expression parser with a carefully constructed execution context, and none of the necessary pieces are exposed, not even in the SDK. It is theoretically possible, though. But totally unsupported.
I know its an old thread, but if you were still wondering, I found that (in 8.3) if you import the BoundValue type you can create a new BoundValue and assign it to a tag's opcItemPath property.
eg. if you want to bind a parameter named opcRootPath: