Initialize ScriptingInterface in a script or stable method to retrieve a ScriptingInterface instance (moho object)
Posted: Tue May 02, 2023 11:29 am
Hi,
Does anyone know, if there is a way to manually initialize the ScriptingInterface? It seems, that if I use a SimpleDialog in combination with the HandleMessage dialog, the moho-object, that is passed to the Run method gets deleted.
Alternatively I could use the scripts-HandleMessage method, but I couldn't get this to work, as it is not called, when a button is clicked.
Does anyone know, if there is a way to manually initialize the ScriptingInterface? It seems, that if I use a SimpleDialog in combination with the HandleMessage dialog, the moho-object, that is passed to the Run method gets deleted.
Alternatively I could use the scripts-HandleMessage method, but I couldn't get this to work, as it is not called, when a button is clicked.