Use pythonscript to wake up other command line programs

Hi the community,

I am a newbie to rhino API here and really need some advice. I attempted to use rhino for modeling and then another command-line program for simulation(Radiance Simulation Tool) in sequence on Mac. I am wondering if I can use pythonscript to wake up the second program from the terminal, so that this workflow could be automated?Is this possible?

Many thanks in advance!

Not sure what you mean by “wake up” the second program, but anything you can run on the command line, you can try to run in Python. Look at the subprocess module.

Thank you for your tips! subprocess is definitely what I what!

1 Like