[Update] ScriptParasite 2: Compatibility with Rhino 8 script editors

trying to get it to work, it should be exactly what i need BUT no luck till now. Windows 11, Rhino8, VSCode. I tried first the install via packagemanager, it looks like it worked, but didn’t work. Looking for manual or other documentation. Only thing i could find was what was in the github, which is perfect if everything works out, but rather limited for troubleshooting. my VSCode directory is on a separate disk G. I point the Path input (via a panel) to the directory(G:\Code\GH\test, also tried G:\\Code\\GH\\test). I connected a boolean toggle to the Enable input. I grouped my parasite component and my C# component (i tried C# and python3, didn’t matter, both give the same error), I toggled the boolean to true and always get the error: “1. No valid target script component selected”. Nothing happens, no cs script is created in the directory (also not in the default Grasshopper directory), also no VSproject file. I reinstalled 3 times then tried manual install, because the package install did not copy the gha files to the component folder. Out of ideas. Would be nice if somebody could point me in the right direction: am I doing something wrong, or has somebody else had the same error, found a solution…
Thanks in advance

Hey pieter,

I tried first the install via packagemanager, it looks like it worked, but didn’t work.

The plugin was not showing at all?

Location of the code should not matter at all, as long as the user running rhino can access that location.

I think that the way of connecting changed a bit in the last version, so grouping is not needed anymore, but you can drag an arrow from the top of the component to the intended script component to link them up, like the image below.

If it’s connected it should show watching in the status image like this image.

Does that work for you?

Thanks that solved it, feel a bit stupid i didnt try this sooner, but thought it was a logical representation how it worked, not a literal example. Works perfect, thanks for the plugin, makes coding grasshopper much easier.

Hi all, I’ve just released ScriptParasite 2.1

Here’s the changes:

Python

  • Default vscode settings are created for python so python autocomplete should also work out of the box.
  • For other editors than vscode please see Python advanced readme

C#

  • A default .csproj is now created, so completion should work for C# automatically
  • C# files now get a unique namespace, so multiple .cs files don’t collide anymore.
  • Script_Instance is now written as abstract so the editor stops complaining about non implemented methods.

Bugs

  • A slowdown bug was solved causing rhino to slow down after repeated running for a while

Let me know what you think!

This is mainly intended for editing C# scripts in Grasshopper; unfortunately, you can’t really compile these components. In the latest release it auto-generates a csproj so code completion works.

Thanks @arendvw! I’m excited to give this a go. I’ll have a look at how it works on Mac too and let you know how I get on.