Logic Machine Forum
Get event script object name - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get event script object name (/showthread.php?tid=2372)



Get event script object name - MantasJ - 28.11.2019

Hello,

How can I get object name, which is tagged to an event script, from that event script? Maybe there is something like event.getname()?

Thank You.


RE: Get event script object name - Erwin van der Zwart - 28.11.2019

Hi,

Try:

name = grp.find(event.dst).name

BR,

Erwin


RE: Get event script object name - MantasJ - 29.11.2019

Yes, it does work! Thank You! Smile