Transfer JSON data from an array to a slider
-
Say, i have an array, which contains multiple JSON data objects. How can i copy the data to a knob (for example) via scripting? I thought, maybe .setPropertiesFromJSON() would work, but i can't figure out, how...
HiseSnippet 1005.3ocuVstaaaCElxIJaVaqXcnO.D9WtEYoV9VR2vP8hcRgWWR7pRyFPQQAiDULgkHEDoRsaPA1O1yy.1SvdV1avdC1NjR1VYIMs0.KBHA9b4i7iGdtvQoBepTJRQVUOdVBEY841dy3pw8GSXbzvAHq6Xe.Qpno3bU6NKgHkz.jk0ZOQqvp55Hy2e+3cIQDtOcoJD5DAym9irXlZo1Q8dJKJZeR.8XVbIua2anuf2WDIx.9rlcCTBweB4L5gDsaUrQVarW.SIR8TDEUB9rqHXl2Xwq449eBSxNMhpEbQdvBkqF0eLKJXz7ypDgrVezxS9Z4m76Ye.KfsP+xHvWZLfWhnbLvpxMQI2OBJYUhRqmSo6Z64mxRTKsn4ymYOjCWHgDHTWlJ49hp7GqY2W.dvUaESlP2OEDVfnd2FM1DC+69eqCDskJ74jT7S4hScweGdNtynp9h3DAGDpWyXsF.n.wO3czgjzTxL.wKbv3Kf+v3ZJ5TUsuAWa.INo1l45hYbPUisZLWlLEjcWHCYVIdr2PurSrffH5HgjoXhb7cJLEPCIYQpSHQY4Xb2ocCyWqNa2s41OBb6sadUN8LgH1rO2N7BVn2AQ7f6Ap3VK7rSqt5fSyNM2tYqtOp86fU+LUcqQoVtFJ41tS6VcZ0pklRNuzw4gO.e7XlDGHnRr3zyYhLYzLLWnvuVjNwwITjhqOEy3KS.eQiWdemKbpZxP2RR0UJIzTEiJgz9Xse0mBItu04AODVfLtuleXA+PghdDutALXE+eMEFds1z0GohnHZ50ZV2OK8l.VmmEeJMcSnnCBGKbDJ3ubWjM9v5h3mWtVxQAeHmoNJgVHuuHJP2cP+6q1yAUTuq69TvPvUko2ycJ583EwBnoHFrHehsINiLjubWdzyGNfnHyWFXEWdO.5FPOGlBj2Rqp8.pbhRjX7snECL148toSWrg8D8lsP3W+odR0LcnYCiinKmJVZ7zeNOyUq6h686O4udyu833xSvPHHYu7.MYVXHapYzSHKJVp.tMLFlHgr9J6mKo3hjarbBrNQL9DZvwBi+nq1MGliHBxhHpKObQOEsvflvk6nq6ZygCxrxj5iXhSiabhyGJEuq8Hlxe70ywJWCGg7f+O3Xwb5uvduvPpuZIAW2d+eYUGJ+d19mIxTL9YGPfqdHQv9vrXO34I9TX24bZDr31VUzUR4xMzx5HfGkGXD9G3qvnqV1pvn6biPRmep3U940e5WB7oFM.m3lG9TEdAFHiWT3YaCcd0I5rW46qO9esKBc8XZtBXZsBXZuBX5rBX5tBX1dEvryMhQ+dvuOSIhyKG.Ei1yz.zxZONAxrLYgn+0gb.fg�
-
knob.setPropertiesFromJSON
is broken (at least last time I tried) :p You'd need to useContent.setPropertiesFromJSON()
.And this function expects you to pass it the complete JSON object (for example
JSONarray[0]
) you are passing individual properties.If you want to set individual properties you can use the
.set
function. -
@d-healey Awesome, mate! ;) This works perfectly! :-)