Content Cache Bakes Twice with Grasshopper Player

2026.08.03_RVTCol_Command.gh (21.9 KB)
rectangle= column
block with the name of the column with length and width

Problem: My block is baking twice on the rhino when I give command on the rhino 8 as columns

Use Context Bake not Content Cache.

but Context Bake is not baking things in particular layer like content Cache

and I had used same things for other commands like this one

2026.07.17_Single_Door_Command.gh (37.0 KB)
this is working

It should. All these things are determined by the Model Object component before baking them with Context Bake instead of Content Cache… at least it works for me.
2026.08.03_RVTCol_Command VR 1.gh (21.1 KB)

In your newer file, Content Cache will work, because you only have one input. When you run Grasshopper Player, each input forces a recompute, which runs a new bake command. This is why with Get Line and Get Number you get two bake results. And It is the reason why Context Bake exists.

Ooo understood …so is there no any other solution?
:slightly_smiling_face:

Hey Look I did this and it is working and baking in the correct layer too.
Thank you so much for your help
:grinning_face_with_smiling_eyes:

Hi Snehal.

Volker’s script is the correct way to do this

You should not be using the content cache component in Grasshopper Player component for the feature you are trying to make. In the latest screenshot you have put, the Content Cache component is not doing anything. The content input is just passing out the content output. Remove that component.