Can a indirect tag be used for a mouse event in the event handlers?
I have tried many ways with no success.
Please help!
Can a indirect tag be used for a mouse event in the event handlers?
I have tried many ways with no success.
Please help!
Sure, you can address tags indirectly in scripting. Here is an example:var = event.source.parent.propVar
value = system.tag.read("Path/to/%s/tag" % var)
You can see in this example we are sticking the var variable in the path. You can replace any part of the path.
Awsome! I just got off the phone with Dave and that is what he said too!
My code:
tagpath = str(event.source.parent.Device) + “/C/6/State”
system.tag.write(tagpath,0)