ggGrasshopperSettings Component

Hi all,
I accidentally encountered this invisible component:

It stays in my model even though there’s no other Geometry Gym component. A few questions:

  • What is it supposed to do?
  • Is there a way to make it visible?
  • Is there a way to delete it / have it disappear by default if there’s no GG component in the file (it was blocking during a file exchange as my interlocutor didn’t have the module installed).

Thanks in advance,

Best

Hi Quentin,

Thanks for the post. This isn’t ideal, and if there is a better way to achieve this, I will consider it.

Our plugins support a complex data models, and need to save some settings and preferences into the grasshopper document that aren’t practical or essential for a user to nominate (or are inherited from user settings in Rhino). This might be the rhino document units (ie mm, m, feet) etc, and are needed to be recalled when running in compute (where there might be no rhino document).

You can refer to Defining plugin-wide variables for Grasshopper plugin - Grasshopper Developer - McNeel Forum I have seen other plugins use a similar approach.

The hidden component shouldn’t be added to all documents, only if a gg component was added at some stage. If all gg components are deleted, this settings component persists.
The most practical way to cleanse it, is to select all components, paste into a blank script. If no gg component is included, this setting shouldn’t be generated. Let me know if this isn’t the case.
I don’t believe it can be selected or made visible.

Cheers,

Jon

Hi Jon, Ok, thanks for your reply!
Best