This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

script read name
#1
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
Reply
#2
Use _SCRIPTNAME global variable
Reply


Forum Jump: