is there a chance for the host to retrieve the ins...
# scripting
e
is there a chance for the host to retrieve the instance of the script class after the script execution/evaluation?
v
If there is no API, maybe wrap the script text to be executed and add a
return this
in the end?
e
you mean in the script itself? And where would I get the return? However I'm doing this atm
v
As far as I remember you get the return value of the script. But I might remember wrongly.
e
that would be super useful
i
.eval(...).valueOrNull()?.returnValue?.scriptInstance
❤️ 2