Did you post any code for doing something similar that I might have missed?
I didn't write anything to export back the code when new inputs are created in the scripting component.
I'm not sure if it's worth it,…"
"nice! Very elegant refactor. The part of exporting new parameters is out as far as I understand?
// scriptComponent.SourceCodeChanged(new Grasshopper.GUI.Script.GH_ScriptEditor(Grasshopper.GUI.Script.GH_ScriptLanguage.CS));"
"I forgot to add, if you want to build the .gha you need to add the script.gha reference in the plugin project.
Visual Studio won't allow you to reference files other than .dll. To work a round this you can copy/rename the file as a…"