I am starting to learn how to publish my gh files to Rhino using this video.
Within my .gh file I have a Custom Preview component, so I can visualize what is happening. However, that preview does not work after publishing. Is there any way of previewing geometry before baking/completing the command? I have a workaround with Content Cache displaying locked geometry and clearing it once a proper bake occurs, but it is convoluted and - I think - unnecessary.
Also, my published gh file will only run once as a Rhino command. On the second attempt, Rhino tells me āNo output contextual components in definitionā. Iāve added a ContextBake component, and a Brep component grouped/named as described here IN ADDITION to the Content Cache that actually bakes the geometry to Rhino. What am I missing?
Many more questions to come Iām sure. This is a phenomenal leap forward for Grasshopper (pun intended)!
When testing a published .gh file, my current workflow (again, using the above referenced video as a template) goes:
1 Create .gh file
2 - open Script Editor in V8
3 - Create project (*.rhproj)
4 - Right-click commands and insert .gh file (is .ghx better?)
5 - Save āPlugin.rhprojā
6 - Publish plugin
7 - drag & drop .yak file to Rhino
8 - test functionality.
I know Rhino will assign an id to the plugin, and that id cannot be overwritten. So, (hereās the question) does that mean to ārev upā the plugin I need to create a whole new .rhproj? Or just insert a gh/x with a different name?
Another question (unrelated): How are .gh plugins handled by this? If I use Pufferfish for example, then send the published .rhp to someone that doesnāt have Pufferfish ā¦ what happens?
Again, really excited about this. Itās something I always thought would be cool, but no way would it happen. Huge thanks to any & all that were involved.
Thanks so much for the response. GG_UI_Designer is part of Grasshopper Gold. I am only using GG_UI_Designer in order to quickly generate an ETO window.
And I guess this is a case where GH doesnāt recognize all 3rd party plugins and prompt for install?
Thank you Ehsan. I have replaced the ETO windows with Human UI windows and the compiled script does not have any issues running more than once! I will continue to poke around with ETO to see if I can find the issueā¦
A followup question regarding āversioningā a published plugin:
When I open an existing .rhproj file, add Grasshopper commands, and re-publish a .yak file with a new version number, Rhino tells me āUnable to load plugin.rhp plug-in: ID already in useā. The RUI does seem to update (the toolbar includes the new Grasshopper command icons), but the plugin is still running the original version.
Your plugin ID stays the same for the life of the plugin. Itās version can change. Are you wanting to have multiple versions of the same plugin installed?
Are you trying to update a plugin while it is loaded in Rhino? Would you mind sharing the error message? you can also run RhinoCodeLogs and DM me the contents