Hello,
Any command to kill the python script run?
Rhino.RhinoApp.RunScript("-_KillPythonScript (test.py) ", false); ???
Thanks
Hello,
Any command to kill the python script run?
Rhino.RhinoApp.RunScript("-_KillPythonScript (test.py) ", false); ???
Thanks
There is no external “kill” routine. You typically put your python code inside of a function and return out of the function when the script decides it is time to exit.
Yes, I now, but I want kill by c#, not inside python.
Are you also running the script from this C# code? If you are, then you could set python variable from C# using the SetVariable function on the PythonScript class instance you are working with.