Just wondering, if it is possible to update a viewing angle of an object in Shapediver viewer when invoking a specific function? For instance, if I want to rotate my object in Shapediver around X-axis using the slider number input parameter and the Rotate component, is it possible to change/update the default perspective view to a specific view (sort of a named view) on the YZ plane in order to focus on the rotate operation?
If so, can it be realised with Grasshopper components (or using any plug-ins compatible with ShapeDiver)? Or it is only possible via the API?
At the moment, this is only possible with the API, either using promises or by setting up event listeners when parameters change. Unruh Furniture make use of this type of updates for all their configurators, for example.
It is in our plans to make this type of behaviour available through Grasshopper components, along with animations and other viewer features. This should happen later this year.
Thank you very much for your reply. Yes, the event-based configuration of the viewing angles on the Unruh Furniture is exactly what I would like to do. I look forward to trying those new functions which will roll out in the future ShapeDiver updates
Wow, I had no idea that the ShapeDiver viewer could be so responsive to parameter changes. In this model, it appears to be as fast when moving sliders as what I expect from Grasshopper directly. Amazing.
Thanks for providing this information @mathieu1 since I’ve been really curious about the responsiveness of Munson’s website comparing to other shapeDiver client’s website.
For the live interaction aspect of shapeDiver, are there any methods to eliminate the processing time delay when user adjust the parameters?
The rendering loop in the Munson configurator simply recreates the logic directly using three.js. Solutions are only recomputed when geometry and data need to be exported (i.e at checkout). Therefore, there are no specific methods to eliminate the processing time except to just not process solutions. The logic is not tied to Grasshopper or the ShapeDiver API in particular, it is pure three.js manipulation.