I have set up the Shapediver API in an external website so that I can track the values of the grasshopper parameters as the user changes them. To do this, I have attached “ShapeDiverDataOutput” to each parameter in grasshopper, given each a unique name, and then have the values fill into an array each time the window is clicked. Here is the simplified version:
In theory, the info.data.data should always reference the same parameter, correct? But it does not. I have 10 parameters that read correctly at first, but once a parameter is moved, the reference identity for that parameter changes. For example, at first, the info.data.data does reference the Truss Depth parameter, but if that parameter value is changed, suddenly the trussDepth array starts showing values from the Length parameter. What is happening?
Alternatively, since each of my ShapeDiverDataOutputs have a unique name, how do I just refer to that label instead of data[i] numbers? I have tried the following and it has not worked.