Hello.
Is there any possibility to “embed” *.gh file in to rhinofile, so that there would not be two separated files when making parametric components?
Hello.
Is there any possibility to “embed” *.gh file in to rhinofile, so that there would not be two separated files when making parametric components?
To my understanding there is no method for that. You can, however embed Rhino geometry into a Grasshopper file.
Also, with VisualARQ you can create Gh-style objects that embed a grasshopper script to generate their geometry.
I think I’d look into Grasshopper player…
Hi @Takalo_Mika ,
I have made a small script while back which lets you embed your Grasshopper file into your Rhino file. You can check from the video to see whether if its useful for you or not.
I think it’s important to understand what file embedding actually is. Instead of dumping a binary file like a .gh on the filesystem, you basically just dump the bytes into a text field as plain text. And vice versa.
If you manually do this, you would open a .gh file in a texteditor and copy and paste the raw text into a textfield e.g. in the script editor as a raw string, or into an accessible field anywhere in Rhino. To extract it, you would copy and paste back into an empty textfile and rename it to .gh. Then you load it in Grasshopper. Thats it.
Now of course the coding part might a bit more demanding, but it’s doable. Also for a beginner with some AI assistance.