I’ve created a script that opens a file, selects a region, deletes everything else, and saves it, and it works fine when I execute it using the rhino command line or pasting it in command prompt (still opens up the gui) but if I run it with python using os.system or subprocess it runs in the background and doesn’t finish executing the script.
If I use different script commands like ‘SelSrf Delete SaveAs’ it runs properly in the background, but maybe there is something about the SelCircular command that won’t run without a gui?
Here’s the script:
“C:/Program Files/Rhino 7/System/Rhino.exe” /nosplash /runscript=“_-SelCircular 984365.8781,214434.5225 1000 _Invert _Delete _-SaveAs test.3dm _-Exit” “original model.3dm”
4 posts - 3 participants