I have a added to an iFrame component, which holds a GLViewer object. The script captures all transformations of the GLViewer. Now my goal ist to access this transformation in my dash application. Is there an easy way to save the data to a dcc.store? Or is there a better way to access the data within dash?
Please see the following code. My goal is that the GLViewer keeps the current transformation and updated just the molecule structure. Right now the transformation gets reseted at every button click. My initial idea was to save the transformation after each update in a store but I don’t know how to access the store from a custom html script as it is in the bottom of the MolTo3DView function, which logs to the console right now (just at each click right now and not after each change of the trafo).
Is there an easier way which I couldn’t see? Or would this be the way to go?