ShapeDiver change View 2D/3D

My task is to enable user of ShapeDiver model, to toggle between 2D and 3D view. Is there a method to create a toggle that could switch display persective between PERSPECTIVE and TOP?
(I’m ready for more advanced c# stuff)

Thanks a lot!

See earlier Forum post:

Learn more about the camera methods in the API Reference.

1 Like

Thank you for quick response. As I understand, this is possible from API level, when I’m embeding ShapeDiver 3D viewer on my website, but is there solution from grasshopper definition level?

This is not possible in ShapeDiver because any scripts in your definition with HTTP requests are blocked. You need to deal with any viewer related functions in your JavaScript application through the API. Learn more about the ShapeDiver API in the Documentation.

1 Like