I’d like to take control of my Rhino and Grasshopper file from a Batch file, like:
I have that one, from a Batch file after run, I’d like to change the Radium, Height and the number of Lattices in 3 directions Before start Rhino and Grass, could you help me please?
I do not have a direct solution, I didn’t even know it was possible to launch grasshopper from a batch file.
From the same batch script you could create a text file with all the values you need in a fixed location on your pc.
Then your gh solution, when opened, will automatically load that text file and read the values.
Should be not that much hard to do, tell if you need help in that.
If you say from the same Batch scrip we could create a text file with all the values we need, that interest me and maybe could be a solution, so yes, I would like some help please!
I have creat a new text file like commande.txt with somme values, and in Batch file I’d like to cal this file.txt and run Rhino/Grassh after but the problem is when I run I see nothing on my cmd, maybe the syntax it’s not good! Can you help me please.
If you want to just pick values from a txt, then don’t make thing more complex…
Use Cmd to start rhino and gh as you did in the first post.
In the gh file always load your “commande.txt” file and pick the rows you need.
I will try to do your solution and I’d like to know, if it’s possible from the Batch file after run to give a STL, STP model, I want to automate my Batch.
I already know that in my Batch file I have to create a storage folder where I could keep the models in these formats, then in grasshopper add some commands for the Bake function to run alone after the Batch and save it!