Join Slack
Powered by
is there a chance for the host to retrieve the ins...
# scripting
e
elect
07/14/2022, 4:43 PM
is there a chance for the host to retrieve the instance of the script class after the script execution/evaluation?
v
Vampire
07/14/2022, 6:06 PM
If there is no API, maybe wrap the script text to be executed and add a
return this
in the end?
e
elect
07/14/2022, 7:14 PM
you mean in the script itself? And where would I get the return? However I'm doing
this
atm
v
Vampire
07/14/2022, 8:32 PM
As far as I remember you get the return value of the script. But I might remember wrongly.
e
elect
07/15/2022, 8:24 AM
that would be super useful
i
ilya.chernikov
07/20/2022, 7:26 AM
.eval(...).valueOrNull()?.returnValue?.scriptInstance
❤️ 2
2
Views
Open in Slack
Previous
Next