algorithmic modeling for Rhino
Hello everyone,
I am currently trying to load GH from a Rhino command and to open a .gh to finally control the slider and toggle of this grasshopper file.
I am using the GH_RhinoScriptInterface to load Grasshopper but not all the components are loaded. Only the plugins and coded components are loaded and all the original ones are not.
So when I open a gh file it tells me all my components are missing.
Do you know how I could fix this problem?
Thank you so much!
PS: Here are parts of my code:
GH_RhinoScriptInterface gh = (GH_RhinoScriptInterface)RhinoApp.GetPlugInObject("Grasshopper");
gh.LoadEditor();
or
GH_RhinoScriptInterface rhSI = new GH_RhinoScriptInterface();
rhSI.OpenDocument("D://test.gh");
rhSI.HideEditor();
Tags:
I totally understand. I tried too to send keystrokes to RhinoApp and it works fine to open GH.
But after, if you want to get the objects of your grasshopper and change values it seems I need to use GH_RhinoScriptInterface.
I tried this alone:
RhinoApp.SendKeystrokes("_Grasshopper", true);
and Grasshopper starts fine but if I add the next part like this:
RhinoApp.SendKeystrokes("_Grasshopper", true);
GH_RhinoScriptInterface rhSI =(GH_RhinoScriptInterface)RhinoApp.GetPlugInObject("Grasshopper");
rhSI.OpenDocument("D://test.gh");
it doesn't works anymore.
How could I start my plugin with admin access?
Welcome to
Grasshopper
Added by Parametric House 1 Comment 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2026 Created by Scott Davidson.
Powered by