How do i run a script synchronized if i’m outside a rhino script command? i know i can declare a script as script runner and every script called inside it will be sync but what if i’m outside a script command?
What do you mean by synchronized? I’m not sure I understand the term in this context.
like using Invoke(). When you call RhinoApp.RunScript() it runs asynchronous (like using beginInvoke()) but i want it to be synchronous.
The only way i know to do that is to run scripts inside a script declared as script runner, and every script that runs inside it will be synchronous but if i’m outside a RunCommand i can’t find a way to run them synchronous.
Rhino is not a multi-threaded application. Thus, command scripts, run with
RhinoApp.RunScript() should be run asynchronously.
I do know it… so let’s ask the same thing in a different way. How do i know if a script is completely executed?
When called from a script running command,
RhinoApp.RunScript() won’t return until the command has finished.
You can also watch for the
Command.EndCommand events if need.
-_Insert command never triggers Command.EndCommand?
This is what i did. I was hoping on something else. Thank you.