I would like to export a glTF file with attributes, from Grasshopper.
I think the ShapeDiver plug-in could help me doing such thing, however I don’t find information on how to add metadata (key values) to a glTF export. I see it applied only for names or materials. Is that possible with custom attributes ?
The final goal is to create a Cesium scene like this one, where I could click on my geometry and see its associated custom metadata.
As I am very new to the topic, any help is welcome. Maybe I am missing something obvious.
I attach the grasshopper script I use to add metadata to a simple mesh. shapediver_attributes.gh (5.5 KB)
At the moment, only name, material and transformation attributes are stored in the glTF outputs of a ShapeDiver scene. The native ShapeDiver attributes are supported as part of a different type of output called sdTF, which we developed at ShapeDiver to allow for a richer format that preserves the structure and metadata from Grasshopper.
You can read more about sdTF and how to explore and manipulate its contents in this article.
We might support more attributes in the output glTF files in the future, however we do not have a clear timeline for this feature.