Content Cache component

Hi,
How would you “release the content” for all geometries baked in your model using this component without right-clicking on every single one of the definition ?


I use my grasshopper definition to create different versions of a same geometric typology, but as soon as I modifiy one parameter it updates the previously baked geometry instead of creating a new one.
What are your methods on this concern ?
Thanks for your advice

This is not up to date. You should update your Rhino installation.

Hi,
Thank you, you’re right, I installed the up-to-date version.
But now, I can’t even access to “release content” option…


Is there any “good practice” for using this component ?

It depends what you want to do with the geometry.

The release option was necessary in the past. There was no ‘bake name’ or ‘cache name’ option. The ‘cache name’ is saved as user attribute and whatever has been baked / cached with thta name before is overwritten.

1 Like

Is there a way to access user attributes in grasshopper or Rhino ? Do I need to search for them by code ?

Everything you need is in Grasshopper in the Rhino tab under Content.

Thank you Martin for your responses.
But I can’t find any component which allows me to access/edit/erase the “cache name” affected to the geometries.
If you know how to do it, I’m interrested in having more details about the procedure.

Zoom in until you see the + appear on the componenent…

Alternatively you can Shift+LMB double click to show all possible inputs and Ctrl+LMB double click to remove unused inputs.

Thank you for this, but this is not what I’m searching for. I don’t know how to explain clearly my need, I’ll try to sum up.

  1. I use a grasshopper definition to create parametrically one set of geometries.
  2. I bake it, using the Content Cache component. By using this, a “Cache Name” is affected to the created geometries.
  3. I modify the parameters of my definition to create a different version of it.
  4. As well, I bake it, using the Content Cache component. And here comes the problem, it overwrites the first created version, instead of creating a new one.

I could use a custom “cache name” to have independant version. But I would really prefer get rid of the link between Grasshopper and the previously created geometries.

If I undestood well, these “cache names” are stored as user attributes on geometries in the Rhino model. If I could delete these attributes of the geometries, it would break the link, avoid my geometries to be overwriten and prevent me to lose objects.

Everything you need is in Grasshopper in the Rhino tab under Content.

I have seen in the Rhino tab that I can access to “User Texts”, but these are different from “User Attributes”.

I believe this is a bug.

Geometry should not be overwritten unless there is a specified cache name.

Using a cache name, the geometry which has been baked with this cache name is overwritten when baking again. But, somehow I currently do not see the cache name being added as Attribute User Text?

@kike what’s up with the component?

When no ‘Cache Name’ is provided a unique one is used on each component.
This way an unnamed ‘Content Cache’ component may work independent one from each other on several instances of a cluster.

@Baptiste if I understood you correctly the only thing you need to do is Bake the component.
Bake the cache as any other bake operation removes any kind of relationship between the component and the baked geometry.

Why is the cache name not saved as user text anymore?

Because it was accessible to the components and can be destroyed by accident.

Ok. I see the cache name is somehow saved with the model object…

Is there another way to see if an object has a cache name attached to it?

Wouldn’t it be better to not overwrite whatever has been baked if there is no cache name?


Interesting. I have the Insert key set up as a shortcut to bake a component.


Anyway… @kike … I think I can live with it but I still have to ask: Is this going to be the new way or will it change again in two weeks?

Hi Kike, gracias por esta respuesta,
Yes, it’s the only thing I need, but I’d like to do it with the help of a button at the beginning of my definition. Thus, I can bake as many component as I want in once and add logical information to chose rather I want to bake them or not. Actually, I like the plugin Elefront and used to use it for this purpose because it has a bake component that can be triggered by a remote button. I was wondering if the content cache component could be a more “native way” to do so… It seems like it’s not quite the same purpose.

Hi,
No further reaction on this matter?

You can connect a button to a cache component by zooming in and click the plus or Shift+double click the component…

Not sure if this is what you were looking for but the Grasshopper Rhino components do not have an equivalent to the EleFront Bake All component.

This is what I had understood.
@kike Is there any chance, that the cache content component would have an option to not create any cache name to the created geometries ?

2 Likes

It would be great to have this option!