I would like to have an oppportunity to open Shapediver model with parameters that client set just before clicking “send email” button. In other words, I want to automatically recreate the same scene that client set in ShapeDiver viewer.
I realize that there is an import export parameter values at the upper right corner of paremter panel, but I was wondering if it is possible to get this info along with exported model from no-reply@shapediver.com email
Is it possible generate parameter values with grasshopper code ( to constuct json file that can be imported in viewer )? Or I need Designer+ and ShapeDiver API for such functionality?
One more note. I tried to recreate json text with concatenate component, but the problem is that model id is always different…
At the moment, this is not possible, but this is a good suggestion and we will work on adding the json file as an option for the Email Export component. The only other option at the moment would be to develop a custom solution using the API.
Is it possible to create a save parameters button via ShapeDiver API, so Designer can save previous design solutions (design with different parameters) and evaluate later, choose best one? If answer is yes, can you send some code example ( ShapeDive API + Grasshopper) . Thanks in advanced.
If you have built a solution using the API, the user experience you describe must be implemented in your application. You probably need to create a user database where you users can log in, save their designs and come back later to see them. This cannot be done on the ShapeDiver side.
A very light way to do this would be to create a button that allows users to download the state (list of parameters and their values) as a json file, and another button that lets your users upload again this state later and start from their previous state. This would be re-implementing the Import/Export parameter values functionality that is included in our platform and iframe. Implementing this is quite straightforward: just loop through the parameters of the model, and write/read their id,value pairs in a json file.