Indirect tag for a mouse event in event handlers

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 ="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! :prayer:

My code:

tagpath = str(event.source.parent.Device) + “/C/6/State”