-
Notifications
You must be signed in to change notification settings - Fork 6
Internalising BHoMObjects
Internalising data in a script is a good way to share information internally or externally without sharing entire scripts.
Grasshopper uses containers to store data - for example there are containers for geometry, booleans, colours, integers and many more.
The BHoM has it's own set of containers known as Goo
s. Currently there are the following Goo
s:
BHoMObjectGoo
IObjectGoo
IGeometryGoo
When objects are pulled, they must be plugged in to a BHoMObjectGoo
and internalised. If they are not, and the DataContainer is internalised, the objects will be unknown to Grasshopper and result in a useless object wrapper containing no useful information:
Using a BHoMObjectGoo
to internalise the objects means they can be shared:
Note: The script must be closed and reopened to see the failed serialisation of the objects internalised in a Grasshopper DataContainer.