Save and recall array of objects
-
In the following snippet, i change the order of an array (containing references to 6 panels) by dragging them to new positions in the interface. When i close and restart the project, the array is reset to it's inital order.
I tried to save the content to the main panel's popupMenuItems (which seems to work fine) withMainPanel.set("popupMenuItems", FXPanels.join("\n"));
and want to recall the stored values on init via
FXPanels = MainPanel.get("popupMenuItems").split("\n");
(right after the FXPanels declaration), but it seems that the FXPanels array stays uninitialized after recompilation(according to the ScriptWatchTable and error alerts).
Has anyone an idea how to solve that?HiseSnippet 2980.3oc6a80biTbDe04aoNIBDH0Ep73fpTTqhMB8OaHmu67+kwEm+CV9NL0kqbMZ2QRCd0NK6NqsLTtJpJ407cfOA4qP3s7ZdHe.RdMOw2fK8L6+kWYjVLT.wt3N71S28zS2+5d5c14NvgoSbcYNJEJdzE1DkB+J0NWXwGrw.L0RYmMUJbe01GexgLON0p+IGfsHlmTWY8KrwttDCkBElaaAmEJdWE4Oe6JqiMwV5jXRJJOiQ0IOgNjxiodvpeD0zrM1fbDcXBtas5N5LqMXlLOvplSslhMV+TbexdXAa2QUovqrkAkyb5vwbhqRg6tNy3hNCXma4y+yntztlDwC0U5.JxmbalogvhETU1X.0z3fvUuqhRA0Ch8Ey46Ktu5tTCZD8XexaHG.EKQR+Qg6j17lKk4UOo4UKg4kgIUHgIcWeS5MU6n6Ps4wiHrmWUcGKNwoGFb6IMEedUtSk2RcCFvgEu5P7oj1NvCQRnsTsZKff+pxxkjw9pFjdDmMvllcAOuqF2wi.i8duG5Pw.DH39.zGhcLzYfCEsK1EzDp8wn9DKhCUuDD+b4nyvNwb4yT6iCXA8Hzy8mq9D9V85Qz4ZkuBy0KWYgREC946l8FyF6MmM1aMaru3rw9Rkq7hztX2r8wcLYAZw857yobvBYZe7T6fmH6MlM1aNar2Z1XewYiceGbowcw6BozHYUMD1xP3fkOjz2JXwmiGgByhfYZC1PalE7fV4HNJCoIBQZeruVDQgrEIfCY..k4OWqbMxobMyobsxobKlS4jQKT1RVJg2MxyKTiVYalsm8tDKuc3jgtk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ti67+p8VU3MTJ7VQx7fRwM2oj.PpLSHhFSzf+3aQD2DHhF4BQzHGHhF2LHhlSxfeiO+VDwMAhnYtPDMyAhn4MChn00Xv2hHtAPDsxEhnUNPDstYPDKNIC9.uaqQbSfHVLWHhEyAhXwaFDwRSzfw+D.QLUHfwgM+zBQLYG7292mLhXobfHVZhHhqdEjdCU4WjDySeinDWCrfAfWzL00PRbUirbo7jKfUtwtlTSqI9lpxnT113cxvFgWG8GBaL3xk8Zp9G7ZrAdWHZ7CzMI6URL+2ye9+spYb8hBtweW8hBkxt1KDL+5pIw4JahGZG39926+W+GqbHiMrC8KHIC6c.8QXATP+4u4+txmPBQlni+i+qUJL2Tunqe897fKs3tXtCERjT2yaXGHyVmHNuWwA9Hxwui3bH7etVPNuRGhkQsfpFuLXv5hmKDLX8vAy.6MS90FY6WEWxw+exMz7V2f7FvcqaPdy9t0MHuwh+xyM759tgWUsC0hHuylxE+aIeF8I3yHnsEeLMwF2W2kL+eNsWxb6o9RluuNGl9fuUnaJE2gLjdDzkkaRhO0kz1g74GJ5jHI8MXXmLG5aWoMrHyTlNXtmirkj0Fx7r3oZAYtq6xtWOmW1869StK69OCZzL08wuXnM1gNz1jrk0YDSFPQXi+F0MI8vdl7Ppowx6xrX1CXVT8jA5CIPNX+9Dmj1dlKn03b3Mbhob+UOjXRvIAs+9UeB.1vNfehjSeQ8Y9eaBYFu9cp9lKRj.h946KHL2uneAgeT1H3Gi4XHV2gcht+23TfSumjBrtsj+yGpn5thmQ0Uje2SPN0ZUqoLDpvchttvE+tPAyrkoQNjoYNjoUNjYwbHyR4Pl2OGx7AWqLhMWVyiyF5mxE7If8+z1PqBIePsfZ5Lkj+6dRNWxKXSHX.xJbRsW5VVFo1O1yz7J7HHNFecNkb93Ekcfkjf1Wd++11+mu3urRzM1I8wXsCrAfCO3nT18fsjek6BE1JwAr7+.5GG4wB�```
-
@toxonic The snippet doesn't compile here, I have not looked through your code but there seems to be some strange code there, for instance, what do you do here?
var FXPanels = [Content.getComponent("FXPanel1"), Content.getComponent("FXPanel2"), Content.getComponent("FXPanel3"), Content.getComponent("FXPanel4"), Content.getComponent("FXPanel5"), Content.getComponent("FXPanel6")]; FXPanels = MainPanel.get("popupMenuItems").split("\n");
-
@toxonic you also need to enable "saveInPreset" for the component that you're recalling the values from
-
@ulrik Yes, this is what i stated in my first post. I want to recall the saved order from the MainPanel on init, but that doesn't work, as you can see. And this is, where my question leads to: how can i make it work?
I know, i have to set the panel to SaveInPreset, but as long i have no solution for that, i don't need to. -
@toxonic save the state in the MainPanel
you can save the state as an array, for instance if it's the order of the FXpanels you want to savestate = [0, 3, 2, 1,5,4]; MainPanel.setValue(state); MainPanel.set("saveInPreset", true);
and use the MainPanels CB to recall the values
-
@ulrik Ahhh, just in this moment it came to my Mund, that i maybe can save the array as in One piece....
Thanks mate! -
@ulrik
Mhh, i still have problems with recalling the array.HiseSnippet 3079.3oc6aszbabbDdWQsJFvwN1tTbRU4xXTobsHjBh3AoSDkDeCZFK9nHnjnKEUrVfc.vFtXmM6NKIncwpbUIGxk7eH+BxobO9VNkpxg7CH4pO4+AJcO6afkz.qjcrcnrkM2Y5tmd59qeryNbeGVGpqKyQRtvgmaSkj+gJsN2h2e89ZFVRaugj7sUZdzwGv73FV8NdeMKp4wUkV6baMWWptjr7LagTJW3lRh+7kKullolUGZ7PRROgYzg9HiAF73Q2ekOxvzrolN8PiAIntwJa2gYsNyj4AZ0LJyKYq04Dsdzc0Pxtghj7s1T2fybZw03TWI4atFS+7V8YmY4S+SLbMZaRwGpJ0BDj+vMYl5nFiiJsdeCS88C28tRRxJ6GaKlw2VbakcLzMhFO1l7VhIHwbjzdHeizp2LoTupIUu4SndYnRxIToa5qRusRqNNF173YP840U11hSc5pAl8jphOsR23m8STVmATXwqLP6DZSG3gHNTWb94mi.+mxKUT36qnS6RcVWyzrMX4cU4NdTXt6dWxA3DTv4dOxGp4n2gAFTxNZtfjHMOhziZQcL5TD7etbxoZNwT4STyiBHg7.xy7WqdT9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i.vllCXmn4zVTcp+cjHS+0OUwWcIX.H46tufvLeu9ED9FoPv2Dqw.sNNri63+M9Pb5qIFA12VheMlJnrC9LoZ3W1SQY9JyKM.xvcbmNnI9NPByr4oVN3odN3oQN3Ygbvyh4fmOHG77KuRdvhKq5wYC7C4h+BslXpvWO4CJxJoiTR96ekXsDW6kPv.DU3jpV5lV5opG6YZNFM3fiPWqSnmMZRYGXKgi8o29ur0+4S9CKGcOZReLVaCE.b3AGkxN6uo3KFKKuYhCX4+Bff9JzA�
In Line 114 i store the array to the MainPanel's value property, which seems to work fine (see the console output from line 115).
In Line 32 I try to recall the array within the MainPanel control callback (did I get that right?). But it seems to have the value 0. Why is this? -
@toxonic look at this, here I collect the "HardcodedMasterFXs" id's and store them in an array that is stored in the MainPanel
In the MainPanel CB iterate over the value to get all 6 Effect Id and load themHiseSnippet 3110.3oc6akzbabbEdfnFEC3kXmRwkO1FUJWCBofHVHchnj4NjYr3RQPs3nnh0.LM.lvASOYldHAsKVkqJ4Ptj+C4WPNk6w2xoTUNje.IWyI8OP485YqGfgz.ikchcDKKY0c+du9qea8a5t4AtrtTOOlqRghGctCUovan19ba9fMGnaZqryVJEJo15Ij1VLtmxFm6n64QMTJTXt6iiWn30UD+77U2P2R2tKMoKEkGwL6Ref4PSdRuGr1mXZY0R2fdj4PIpat1NcY1axrX9.VlScQEG8tmn2mtmNR10TUJbisML4L21bcN0Sov02fYbd6AryrCn+QldlcrnXiZJsAAEzcKlkAhXrWkMGXZYbPzZ1SQof5AIZf4Bz.2TcWSCy39SzDusX.RBGx5iBWKM7lKE7pICuEkfWFPpfDjtd.jdG01ccMc3Iif340U2wlSc6oCpcYnDPqx0TeO0MY.E17pC0Og1xEZDyg1xKt3BD3uprRIgEupAsG0cScKqNfl2Si65Sgwt8sIGhCPAi6cHertqQWFnPI6p6ARh.9F8o1TWytk.6mGmbptaBUAD05IgjPtG4oAyUeJe6d8nc4Zkmf3ZkqrPohg+7USd8Yi7FyF4MmMxWZ1He4x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kHS606oF.WBF.R9t6GHL22q+.guU1H3ai4XndWW1wcCt+KzO80D8.qaawuLSEU2EaSpEcqWppKVcQkgPFti61EUw2BRXlMO0yAOMxAOMyAOKkCdVNG77g4fme1UxCt4x59b1vfPtjauzBSE95xMTKnlNRQ92BKwbIdRHQNCPTgap8R211H09w9VVSPC14Xz09D5YimT1EVRXee9M+S2+e8Y+tUieiIoOTpcfM.b4gGkxtGrs3VPKTXaoCX4+7kmbrA
-
@ulrik Thank you for your support! :-) Although, this is not really what i wanted to achieve.
I tried to tinker around with your example and it seems, that my problem is the handling with objectnames and references. When I store the content of FXPanels to the MainPanels value, then they will be stored asObject ....
but when i recall them on startup, i need the component names like"FXPanel1: 0.0"
, otherwise I get an error message:FX Slots:! You must specify the unique component name, not the object itself
Is there a way to convert these terms?
-
@toxonic but isn't that what I just did, I stored the effect ids, and then you can load them using their ids?
Or you don't load the effects using the ids?
Or maybe I just don't understand what you're after :) -
@toxonic are you saying you want to store the actual object? I'm not sure you can do that, however you can load them using the saved ID from a each of them
-
@ulrik Actually, the core of all is the FXPanels Array. Whenever i drag one of the 6 FXPanels to another position, the order in the FXPanels array changes accordingly (so it's not about loading effects to the Hardcoded master FX slots, or changing their positions). So if I move FXPanel1 from slot1 to the second slot, the array index of it will change from [0] to [1]. I want to store this in the MainPanel so i have the same order of FXPanels on startup, like it was, when i quit the project the last time. Since the FXPanels Array contains Component references, this seems to be more difficult, than i thought.
I'll tinker around a bit and hope to find a solution. Anyway, thank you for your help. If you have further ideas, i'd appreciate any help! :-)