RhinoCommand to run CPython scripts

Hi @eirannejad ,

I’m looking for a way to run a CPython3 script from commandline (in my case calling it from a C# plugin tbh).

Like we have RunPythonScipt <scriptname> for the ironpython legacy, I’m looking for something similar for the new ScriptEditor.

Aware of this thread - but it’s not updated for the new script editor Calling(running) python script from c# plugin - #4 by r.weenink

-_ScriptEditor _Run <scriptname or filepath> is probably what you are looking for. Instead of Run there is also Edit and Open

All documented here

Ah man I was ChatGPT with no luck for this. I should have googled. Cheers :clinking_glasses:

Quick bonus question to this: Is it possible to feed in arguments to the script you’re calling?