When I use a grasshopper compiled command it stays in cache. This issue is discussed here for the grasshopperplayer usage.
I found a trick asking grasshopper to load only once another grasshopper, it works well. But it would be nice to have the same behavior (new solution once) for compiled scripts by default. I tried to compile the script in Rhino WIP but the problem persist. It is very annoying to have unexpected behavior from a script hidden in background.
You never supplied any .gh files for us to look into.
From the screenshot in your previous thread, it looks like you have a Python component that is doing something. I noticed a C# component continuing to work outside the scope of the GrasshopperPlayer command the other day and filed that as RH-65648. I am guessing that’s the same issue as what you are running into.
Apart from that, I also see in that screenshot that you are baking by means of a plug-in and not the standard Context Bake component. If that is somehow involved in what you are seeing, you will have to ask the author of that plug-in about that.
-wim
I can’t tell from any of the threads that are involved here if this still is an issue.
RH-65648 was closed because the specific script that was used as an example is now implemented as an option in the Get Geometry component - namely deleting the input geometry.
If you still have an issue with scripts being hidden in the background, please provide a sample gh file with a python component with your script and without any 3rd party plug-ins.
Thanks,
-wim
I read the discussion attached to the issue RH-65648, good job for the update, my example is still quite different and can’t be solved from just deleting the input after solving.
Would it be possible to open a new issue to solve the caching issue directly ?
I use a lot of scripts and I can’t afford to have one updating itself in the cache, it uses resource and it produces unexpected behaviour.
I find it very convenient to work with grasshopper player and I hope that I could turn my work into a nice compiled plugin one day.