As the title suggests, I am trying to build a build a python script to ultimately input geometrical values to a grasshopper model and postprocess the results. For that, and as a first step, I need to be able to run my *.gh model directly from my python IDE. Is there a way to do that?
Hey Scott, Thanks a lot for the reply.
Although I am afraid I donāt fully understand the original answer, so perhaps if anyone could help break it down for me a bit, Iād highly appreciate it. Also I am curious how different would the syntax be to run the mentioned commands on Windows instead of Mac.
Hey James!
That definitely works! I just added _Exit at the end to close up grasshopper after running the model and outputting the results into a txt file in my case.
Note: for others who are attempting this, itād be a good idea to not include spaces in the *.gh file name, as Rhino will try to use the first āwordā alone as the file name.