Saved States on front end

How do we use the saved states of ShapeDiver on our front end so that the user can save up to 3 states and can use these states and the saved states to update the model on the front end? Is this possible?

@MajorMeerkatThe3rd, @mathieu1 Can you help me with this?

This is possible since we implemented “anonymous” saved states which are accessible through the API. However, this feature is new and lacks extensive documentation at the moment. You can check out the related viewer API documentation pages:

Create model state
https://viewer.shapediver.com/v3/latest/api/interfaces/ISessionApi.html#createModelState

Load session using model state
https://viewer.shapediver.com/v3/latest/api/modules.html#createSession
https://viewer.shapediver.com/v3/latest/api/modules.html#SessionCreationDefinition
https://viewer.shapediver.com/v3/latest/api/interfaces/ISessionApi.html#modelState

Let me know if you have questions as you start experimenting with this functionality.

Thank you so much for your response. I’ll look into this and try to use this approach in order to achieve this.