What Function Is Being Called When You "Right Click Bake" GH Component?

Thanks @diff-arch, while I did start exploring these methods you’ve outlined I am having issues “baking” Views in particular.

I guess with what you are saying when I go to right click on a component and choose Bake… It is running methods specific to that geometry type or node. Would that be correct? So if it’s a Cone component it’s adding a brep to the document, if it’s a Text Dot it’s a Rhino Text Dot object and the associated logic for that. But there isn’t a generic “bake” method that I can invoke on any object type correct?

I can’t seem to get the Model Views to bake to the Rhino Document. I’ve successfully created new Named Views with the names of the Model Views and I have all the info I need to supply to the Named Views such as Camera Location, Camera Target, etc.

So my next step was thinking about taking that info and creating new Views with that data as input parameters.

However, since all of that data lives in the Rhino 8 Model View component already I was hoping to just bake the Model View node directly. If I right click bake it works just fine, but I need to expose a boolean toggle so that I can create the views dynamically instead of manually clicking bake each time the views change.

@AndyPayne do you happen to know what is being called when you right click and choose Bake… On the Model View component?

Any leads are greatly appreciated, thank you!

EDIT:
here’s the related older post about the views specifically