Multi Combo Box Problem - Deactivated Items
-
@CyberGen you have an option to do it with panels instead, the "wiggly" lines works there
HiseSnippet 1330.3ocyW01aaaCDlxIpXxaEaEXXeVSeXPFMy01MMa.CYKMNIaFstwHtqn.cYELRz1bghTPjJoAE0X+j2+ftijRVxsNsAFq.K.wf738xy8BuiZTlHhHkhLji2SuJkfb9B2wWwUy5OCS4nAGfb9FW0kB+njyj9WRUy7SwbBSh1+pTrTRhQNNa7qZdc71DY96e9k8wLLOhTQBgdlfFQdLMgppnNZuGQYrivwjmRSpw816MHRv6KXhb.Wa31AkhiNGOk7DrlsFtHmacXLUIxFqvJhD4r49h3qFOSbI2x+ynR5YLhdSWzXPQVxGIXwZDqoh5OixhGU5+RDnkQUQiMrQiu1cHMltfdUT4qLG3WIQ83gSikg2FKAut0gWmZvaEPxoFj1zBo63NNJilppNQimO2c.WQxlfgvdcnX4E0nmqaeAvAW0NAeN4nLXyBIB60oyV9c6zo0O0rID5kJ+9ImMhyj965WJ1Th5gLVeQRpfC6kgAVdB.grxbANSWmLPQRzB9h.8ptAa4aVzqbw8KWrc4hGTtXmfSADLQj4GBJxmxKwQqld.g1RhJLHUjlmNjvyMFBDszls+KAkGF7G7fV.l7Zdu64kB4KkelHWQ4jBXN5D.bSx4QJpfGNsUyW2zSCcLPVMiJ0d5iEQX19hbdrLriQYdS0V2VTFVxVXvYSsjrlbZ6IPE8IZ4HwmPhTX9TFIDukeuOjRTjWoVVMwY3KeHiNkSheJbXMdeGuuUaYJiprd8KJY6YXVNIr0oa4ClNHBRWYjXch5MP3EBKIhbIwGbQ1YvMqh3xv96WOvPt.DyDbnS7s6ZmQj4LfnGP0yXLYowpyv22U6EVFhlAw.RbnlxaJsOXPUlfUg.JmAInEF2Gt9aS78sbFFUV2sETlA1y.LlNKA4Lh.9OiQAm.J6N0DoMEQTHFoqhJqP.ja7FC8c20egVuAwViYOUqAu5VrcZtbVXv74A2Uq06pWY7dnIIY0Lq4yVNT3ju3aKVzlBENu53IUtaqSulh9kT6xE9UdkQTIgAUhj3QZULPaffxfnsfXk22d8habiz2gNwdEJbzIFKXOYntLpeQNLDpepcVQhawouaFsv1f0qx4OQnHGyCMFu4aZ5+tGMYxJOqPiLR1JOVObI6CIXHOO4LRV8JKMiPG2kai6d8swqOkIx1vrFiB9.NUcbJgecydPEcYgV9MJPEvpxzv+1kM70CdQTnstmqMV1EYPLP3VtkCZu4R2qRZmRo+8AGfUX8fmB.AfLkjonZ+24.xEvTb6XHO2CHxyUhTChKJ3PNe4GGyupZR+A6cU0l16cIMVMqhvet2LBc5rZuX3m2CJmDWVVTI0yg6ynvJ+uy+2DWPxPlKJGyOQKn4H8TvxtzZeETya05ppoql5ag+zTW9dFxokqYHVy4yMyvlOuoYDl42sM+9.yu6fj3KHC3ifNfD.wNMd+qc0yS5d.KY86uL0dEPMqHodyCv8tt.7e+n+OGfMg2UDbsA9clO+FFfcVq.76+LK3Adh3bFVs7q9zO0s3.nGxRO0R+bJtjptp9Sg+O6of2THdG2QTUzrUiwFq.i5VNeBvXwCnus6gSl.ooJ.to6QO+SyqkQ1gTSGhUYTnXv8I4IigTcDArN27UKNtNMz2mr66n2qi.iI7XyFcUZwgc06cJNra4gnDbTl3kEOfQ+D8OyPAvD270IdtC068q5MuHNm.ewvKihVVUumf8VWAu+5J31qqfOXcEbm0UveXcE7G+3Bp+ftGlqDI1qMHzvQGZlF53bHGCUflpUz+BCB9WsB
-
@ulrik :exploding_head: Yesssss!!! Method number 5 for the win!
Oh man, Thank you so much!
One more question, in my project I'm using a group of 4 comboBoxes rather than two, I made the example with two just for the sake of simplicity. Though your code works perfectly for two, when I add two more panels to your snippet, it doesn't do its trick properly. Panels one and two still work fine but 3 and 4 don't. My question is, How do I modify the code to make it work with 4 panels rather than 2?
Things also fall apart if I introduce subgroups to the items list.HiseSnippet 2044.3oc6Z8EabbTFeWaukbWaoMzzzRfBKmRQqUMWuy1IAZqiu3y1IWacxI6PHUAS55cm6tAu2rm1cV6XBwJR7GwSvqfDRviU7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e.mIKEML+ZuQRuUvjk1Ib.8Bfyu5K9Nm5K070SQ3bjAqhsGNkfyKVqVtt4UP45E.mW5G7sN0wJ721O3D9Q16VTcz94dB2Z+2Bs8s9e5VnGoOfyghuE5URJIcnN2B8JsSR+le7Idnm8zuQJBmGM0tmPxvoy6IDANWV9W9Sd7YRS37A6c3r0k2JVQjX2RG5zQwljT.bd4id7+5XdObozCNGqOxNGOdw1akT143cVr8VsyN+ka8mele++7USwryGZvpe8GdvpUviMX0J3iLX0J3i1GYm7cQqf76Uqfu4W8q+Xeu+dZ1J3j8Abdgs1+O21Kr0d741l7YNm7zWISJlclZvpy172sAm.Y8FbNap0YS5Q6tNafdGbYmykd6cRpyVR6cB6r8UlXpW8e+H2IEgSk2MgyoM9oud8eXZ1n9Ye27N1Edy24k9c3WKEyNKLX0J3pCVvY02CVrsP043+D.kkminuhk3GMgz+Awr1QGB```
-
@CyberGen it needed a lot of thinking to solve, I think this will work, however if you need the hierarchy to be deeper than 2 levels, you need some more code :)
I wrote som comments for you in the code
HiseSnippet 2824.3oc2Z0EaajUEdbZMzw6V1V1t+PoKbwpakipw01w4u1lF2jzzlc2zZkTJcUHzcxLWaeiGOi0LWmzP2DUI9Q7D7JHgD73Jd.PZQHwCPqXeXQvtRfVwhDOEXEncgWhPHwK.Km68Nim6D6j5MwVcWGo1L268bN2y246bN9dGmBN15XWWaGkHpWesZXkHOZz4WyhVdxxZDKkYlRIxwhlCoWcIWzpDZYTMMKroqxDqUSy0EanDIxAtLSxHpGTg+yViOglolkNNXJEkaXSzwu.oJgFLag7OOwzbZMC70IUkjNW9Yzsslz1ztN3UGHZZkZZ5UzJgupFSr9hpD4icICB01YdpFE6pD4fSXar17ksW0RH+MHtjkLwrAYTlGLjX5osMMXdLaVkIKSLMJ3idWEvJEBhEGPDKNVzYIFjFyGDSNBeATfFxwiH8E18NPH2Kir6kVx8ZgKEQxkNnvkNZz40cH0nAqv7mGI5LVTrSQMHrK6JBYU56kObzIsAIrnoppUAOsC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hbIKskLE+Ain7+AkkrPWA
-
@CyberGen last post doesn't work as intended , there is something strange going on at init and I haven't found what the problem is yet (I hope I do) , I let you know if I find the issue
-
@ulrik I tried the last post and it works well for me.
Is there a specific combination where it doesn't work for you? -
@CyberGen When loading the project I get this:
Interface: CmbPnl1 931.6500244140625 Interface:! Unknown function 'indexOf' {SW50ZXJmYWNlfHw3NTZ8MjJ8MTg=} : function() - Line 22, column 18 {SW50ZX
the log is from inside the paint routine and shows a crazy value from the first panel in the panels array,
CmbPnl1 931.6500244140625
which leeds to next log, the "Unknown function "indexOf"
I can't for my life find what is causing the crazy value -
@ulrik oh, that's strange, I don't get any error messages. And it appears to be working just fine.
To me the challenge now is how to implement it in my project. My code had one callback per combobox and each callback had slightly diffrent functions. In the process of "simplifying" it, it got a bit too "simplified" for me to understand it, so I'm still dissecting it so I can make it work with what I have.
I'm still hoping @Christoph-Hart finds time to take a look at the tildes issue inside the comboboxes as it would require much simpler coding without panels and paint routines.
Anyway, I thank you again for your help in figuring this out.
-
I was able to implement the above snippet into my project. Well, almost. I still have one issue I have not been able to crack.
Ideally, these four combo boxes should serve as 12 combo boxes divided into 3 groups of 4. To do this, the combo boxes need to recall the values they had when the user switches between groups with scriptButtons. So basically they need to have a memory of their individual values for each group. I've tried a number of things to get that to happen but no cigar. This was easy to implement with scriptComboBoxes, but I can't get it to work with this script for scriptPanels. I was hoping you could point me in the right direction?
-
@CyberGen So 3 groups with 4 cmbs in each, with the same items array?
If cmb3 in group2 have item7 selected, will it deactivate that item in all groups or only in group 2? -
@ulrik said in Multi Combo Box Problem - Deactivated Items:
@CyberGen So 3 groups with 4 cmbs in each, with the same items array?
If cmb3 in group2 have item7 selected, will it deactivate that item in all groups or only in group 2?Good question. I forgot to specify that. Yes, deactivate the item only in the boxes of the selected group. (Only in group 2) And yes it would be the same item list for all 3 groups.
-
@CyberGen Ok, I'll have a look later
-
@ulrik awesome! Much appreciated. Thank you.
-
@CyberGen
Let me know if this works for your purposeHiseSnippet 3366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yY2qYcNysqXcWbWKmovg6tbl.e207cWZ2KtKrblgE24ky7abhy+l+um3C6eV2b2KstmU9W71U+I8wJBO28xadHy69Au1eD+V8Oe27CzYUt1.s0s78+Hy4KcA5+QkDIxEzjJqx9h0H7+g4r7ct
-
@ulrik This is really great stuff. It could work for me, I would have to add the extra comboBoxes and script a hide and show controls function. Which should be easy enough. I thank you so much.
However, I was wondering if there is a way to only have 4 combo Boxes instead of 12. The thing is, the way I have it, my modulation panel only has 4 combo boxes, And the user controls which group of 4 is active by selector buttons. Basically LFOs 1, 2 and 3 selection buttons control 4 combo boxes that contain something like 16 destinations. But rather than have 12 combo boxes taking up so much UI real estate and complicating the script, I have only 4 that do the job of 12, and the 3 selector buttons recall not only the destinations for the modulation but other parameters like intensity, rate, shape, etc. I'm really embarrassed to ask. You have helped so much already, so feel free to ignore. Thanks again.
-
@ulrik this is closer to what I have in mind, I can make it work with comboBoxes, except it all falls apart when I introduce the tildes to deactivate used items .
TBH the way you are doing it with panels and paint routines is a great alternative, but it is way above my scripting skills and I have failed to adapt it.
HiseSnippet 1283.3oc2X0tahbCE0SRlzko6Vsqz9.LB0e.ZGEwGY+n6tUkDBIMpgDTfMsRTzJyLFvMyXilwjknpUJOJ8QoOR8Mn8ZyXlgDHIfZpZ6fDhqsO1my854dsoQH2kDEwCQFYZc4PBx3wlMujIFTc.lxPGtGx3Ilc4iIQ0Xz9AXztWNDGEQ7PFFqefbHFY1.od9iuaWrOl4RRZBgNiScIGQCnhjVaT4Gn996i8HsnAoF81UNzkypx84i.5rtYAzPr6439jiwxgslIxXyZdTAOro.KHQHiM1k6cYyA7OwlL9ynQzt9DoQQTSXhlz79beOIikshpNf560PK6HDLKMRbBqOwI7by5TO5z1SbFOU0gcBhz9Ci0lkdqOC8JlldERQu4PIiTTZiIT5YlMcCoCEI8H4yWZdHSPB6gA2dZpLYrn0xaZVkCifI1J.eNY+PvXJhbkKTvwF9J+6rr.Wejv9Bbnc+vg6JXQ1eqcaM19DQUdvPN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IqffsDpxtf9zEMILOkweBOwcVTZaD2YQcmn.raH+itSpoKuu7iTs.bho9qBxXVWZaeiSgfPAv02+nq6rS0M.VZUAVdUAt8pB7kqJvWsp.e8pB7M2MP4+txNifzBSdsAgp2nl5rWFF0XXXGnZ2J5u.rPPwCK
-
I got it to work!
I had to use a combination of your code and mine . But, I Got it to produce the desired effects.
Not sure if anyone will need this, but I'll leave a snippet here just in case.
I still hope that at some point the comboBoxes are able to use "~~" like panels. Cuz it wasn't easy.
Anywho. Thank you for helping out!
HiseSnippet 1916.3oc6Y0maaTDEe2jtE1EJPk3.LXgPqUWRrSR+fTPjDmjRf3Fq3PERFKz5cGaOz0yXs63zjhRE2.tRbH3fvM.dyGq2YscRCQs7GHhZS2484u4Mu4MyaZqTVDNKikZY6dx4iwV1uuS6yo7gMFFRnVGrqk8cb5wNCmsGkLXTn0NmONLKCGaYau7SDhX6dKK4O+4WuSXRHMBWPxx5YLRD9PxHBufZqs9NRRx9gw3SHiLjdisNHhQavRXS.3rrSMqwgQOOb.9ogBwVxwx916ES3rz17PNNyx9V6vhOu8P1KnJ4eFIizKAKFT2pMXHE48YIwBDKnZ0XHIItU9zNyBrRqhfvxpfvG6zjDSlRuHX7QRFnBMLiG1KUFdKWBd0MgWMC3s.HYa.oaofzccZGkRFyK3Hvy64b.kiS6GBgcSnnj0Zo+38cZv.In7UFE9b79ovfoZ3udsZAH3WUermGD5y3nSCSQCRGuCmlg9JTmbcGf4MXiFynv.+JGt+Q0qTMvCsnetTUV6etJqWoZ2RPq2YBX40wycw5rC6LIxtb1qc0rW+pYuQkpd.hVvbPCxXbFmPC4DFMGotcpr+gmr4laexIUBPpue0qfQu5UU5FTve28ZXvGFMC+1eeaC9vnY3e7dGZvGFUvu0IMl5e42y3eIMs+07K4eIMs+07K4eIMs+07K4+sa1Zp+keOi+kzz9Wyuj+kzz9Wyuj+kzz9WyW6ewpkWJd.J7zPRxtvpiLutS2.4e.tRlQbxo3mjNF3USQBJYzjEqDtVP8f0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