Is there a way to get the name of an object as a string? (and vice versa)


If I have injected an object into the scripting system, it would be useful (mostly for debugging purposes) to be able to get the name of that object as a string. However, to_string(obj) doesn’t work.

Also, it would be useful to be able to write something like

obj = FindObject(“an object name”)