I’m trying to do something really simple, namely run Rhino from windows command line with some arguments:
.\Rhino.exe /nosplash /runscript="!-_RunPythonScript (C:<path_to_python_script>\script.py)" C:<path to input file>\rhino-testbench.3dm
What I want to achieve with this is to:
- Launch Rhino 6 -> works
- Open the input 3dm file I provide -> works
- Run the python script I provide -> does not work
Rhino 6 does not run the script. it’s doesn’t to anything and the console does not show any information whatsoever. It’s like it’s ignoring the /runscript part entirely. In fact, this official doc here https://developer.rhino3d.com/guides/cpp/running-rhino-from-command-line/ does not work either. I see it’s Rhino 5, but I’m running Rhino 6.
Does this mean, I cannot use Rhino 6 to run python scripts from the command line?
Also, I tried pasting !-_RunPythonScript (C:<path_to_python_script>\script.py) in Rhino’s command line to check if there’s something wrong with it, and it’s not. It runs the script as it should. So this makes me think the problem is elsewhere. Is there a verbose mode I can launch Rhino 6 with to see what’s going on?
I would really appreciate some help here because I’m currently relying on this automation in order to have things working.