algorithmic modeling for Rhino
Hey guys,
I would like to make some grasshopper components that takes full advantages of the some of the nice python libraries there are around eg. numpy, scipy etc.
What I have in mind is to have my GH python component collect the variables (geometry, lists etc) send them to a "real" python script, which computes the solution and then sends it back to the GH component.
Does anyone have an idea to do this?
My current hack is to have the GH component write a .py file, execute it and save the results to a .txt file, that I can load back into GH.
Thanks a lot!
Christian
Tags:
It seems like you are already on the right track, or at least that's how I would imagine myself doing it.
Pretty much similar to diva for GH, ladybug+honeybee approach. We are doing more or less the same with TRNLizard (thermal simulation using TRNSYS, under development at Transsolar). The workflow is like what you've described:
- Use GH to collect variable (geometry, list)
- Write and run simulation files (without having to leave GH canvas)
- Write result files (text files)
- Using another GH components to read in result files and visualizing results (plotly)
I'd be interested to see what other people have for their workflows.
Good luck!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by