Programmatically Change Grasshopper's Library Path

Hi All,

I’ve been poking around the dotnet version of Rhino.Inside with Grasshopper from GitHub for a while and it’s amazing!

However, I was wondering whether it would be possible to override the plugin library path while GH is loading. You can image a scenario where I’m programmatically loading Rhino.Inside with GH to test a different plugin version than the default one and would want to programmatically load the plugins from a different location only for this particular instance of GH.

I could image this as function in Rhino which would allow me to set the Grasshopper Developer Settings before an instance of GH is started:

var pluginObject = Rhino.RhinoApp.GetPlugInObject("Grasshopper") as Grasshopper.Plugin.GH_RhinoScriptInterface;
pluginObject .SetGrasshopperDeveloperSettingsLibraryPath("CustomLibraryPath"); //something like this

Any chance something like this exists ?

Thanks in advance!

1 Like