Playing with the demo suite, I tried to expose an object from the application to script in the AlternetStudio.Python.Wpf demo. The object is exposed and the methods work but the object does not appear in IntelliSense. Oddly, if I do the same thing in the ObjectReference quickstart it works perfectly. I create and add the object in MainWindow.Scripter:
private void InitializeScripter()
{
scriptRun = new ScriptRun();
IScriptApi api = new ScriptApi();
var scriptGlobalItem = new ScriptGlobalItem("Script", api);
scriptRun.GlobalItems.Clear();
scriptRun.GlobalItems.Add(scriptGlobalItem);
}
I saw several other posts here that seem to indicate there may be other steps but all of those were in C#/VB.Net and nothing like that is in the ObjectReference quickstart. What am I missing?
Thanks,
Nathan