script read 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: script read name (/showthread.php?tid=1977) |
script read name - MarcusH - 18.03.2019 Hi, Is it possible for a script to read its own name, so I can use it as a string inside the script? For example, if i name the script "living room", then it will "edit" the scene.run( 'scriptname' .. 'Day mode' ) = ('Living room' .. 'Day mode') Best regards, Marcus H RE: script read name - admin - 18.03.2019 Use _SCRIPTNAME global variable |