Updating data output after changing parameters (API)

Hey. Well, I’m not very good at javascript. Please explain how, using the API, to force the model data to update after changing any model parameter. I try to display the price of a composition after resizing it, but it doesn’t work.

The API call that updates parameter values and model in ShapeDiver is

api.parameters.updateAsync().

Read more about parameter updates on this documentation page or the API reference. You can send the price value to the data output component which you can then display in the custom UI of your application.

Following code example generates custom UI elements that are update the model and it gives you a better idea how to work with the ShapeDiver API. For more examples, visit our CodePen library.