Logic Machine Forum
Script Name reference - 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: Script Name reference (/showthread.php?tid=1128)



Script Name reference - DarthPaul - 05.12.2017

I would like to use the resident (running) Script Name as a reference in the LUA code

How can I get a string from the script name? I cant find the code for it, 
something like:
String = Script(name)

Is this possible?


RE: Script Name reference - Erwin van der Zwart - 05.12.2017

Hi,

Try: name = _SCRIPTNAME

BR,

Erwin


RE: Script Name reference - DarthPaul - 06.12.2017

Excellent!
Works perfect, Thank you!

Paul