Automate running python script in Rhino6

Hello,

I was wondering if I could automate running a python script in Rhino6. Basically, I want to keep Rhino running and whenever I get a request from the web, import certain geometries to Rhino, run my python file in Rhino including operations on the geometries with RhinoCommon API, and retrieve modified geometries back in JSON format. Is this automation possible?

Hi you can put a Python script in your startup so you could use an external Python instance to watch the web and then launch Rhino (using the subprocess module?- I haven’t tried this) to do your geometry processing.