Love the plugin. Was playing with setting up some models and came across a limitation/feature request.
Can there be a viewport text overlay to visualise/expose metrics of the Shapediver model?
Example: I want to change model parameters and show the number of particular elements or the total cost of buying those elements, in Shapediver’s viewport. Effectively, an option to toggle a text data overlay over the 3D viewport or as a side pane.
If I understand correctly, the option to use 2D or 3D text tags is not what you are looking for.
If you are planning to create your own application by using the API, this will be the only way to do what you want, by grabbing the values in Direct Data Output components and displaying them on your website, either on top of the viewer or in a different container on the page.
If you are planning to work only in the ShapeDiver platform or using iframes, it is currently not possible to do what you are after, but we are planning to soon display data outputs in a side panel (similar to the parameters and exports panels) out of the box. I will let you know when progress is made regarding that feature.
There is no example for doing that yet with the version 3 of the viewer API, which I would recommend to start working with. But you can check an example of all basic calls here: https://codepen.io/ShapeDiver/pen/gOOaXzM
The “Get Data” button does exactly what you want.
Afterwards, you can check our migration guide to see how to reproduce this example in version 3.