FX Slot Selector
-
@toxonic here, this reorders the panels for you... based on the position you drop the panel into - I'm sure you can work out howe to extend it to work with mouse.drag
HiseSnippet 1994.3oc6Z0saajaEdFaOYWorawtsoEE8JVih.4MdczuNEwq6JGaKGiF6HX4j0AKVHPOCkDgGQNkCGaqtvuF8In88nW1K6ixdcuo8v4GMbjm3XMn6h5zHDDKd34vy24iGx4PNpqfaS784BCyRGOwiXX9IV8lvji1dDlxL1eGCyGX04j9GwCjT1v9cwLha+5FOahG12m3XXZt3dJMMKsjQ3me3qeF1EyrIohLLdMmZSdAcLUlJsa6+H00sC1gbLcrl1MauuMmsM2kG.nZQqpFdX6yvCIGhUpsfkg4810gJ4hdRrj3aXtzy3NS5MheAKR+WS8om5RTMpYzCFnHwc3tNJDqjZr8HpqS2jn22vvzpaJWrXDW7.qCnNzoxS4jOKrCTpE57g4BYg2hYfWMc3UUCd4.ISMHsTDj9bqd1BpmLsGEdtu09LIQL.CztNThz0Xg+18s1lCZvjqMFeFoi.ZL0hJqWs5pH3+VYixO9wniHCHBBLA5+TzywBGaNvZnCv9f5nNmTFlb7knywhzdi5ryInMQeaX1yZCIxdtbYmSpr70zp1xqrZ4RweduW8uaixkmkVO.xiPgKkPXlCPpQM703VkJQZrIJYpC7z17wdbFznxxS0XYXdK0vNmDMVp4h7MLVivPAk6mazt5EztFEztlEztVEzt0UyYnv4rWiETLrTElxRliP9z+LYUzo7.lCzKwOWGTVal34D5vQRX5X5DlxuQRqrB5wSmwVykvFJGsgtweC0QNZVaCEVYkHEeVJRfYbXgL7u7zd078uJ8bP.yVR4LjG2mp9RDdprR4uubIfFFxQxQBdvvQveIHrPfmjlm4EHUOZ.QNmHl.TIBxsA0nBjHLv8bg8XJWZ.WfpPALVcCD8qtVPinO5QqTtD3vRIc8szuaMehraLnp.AVFJ8KPzUyvSyzOPPktp7UZwmfvENDQb34o9ypHF4BvEgwpf.gwkTeU7.x.vNElTlC4xWNHxH0HSGTQW0e6lSGnvfPMTRxXuj0vSCpHs.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+01Qh0X0iEzgCIhLICKdqizZ2LQG+VZN.KET0Z9CCF2iGHrI.OyTGhRsFeAUw+QsqlruPOByIrw+F9D2YMUay3NqkzYNIbyEYVOex7SrNjiXIs9+IBowGHjrDRyOPHYIjVefPxRHq+9Lg7yhHj6a0ixHgugwPZ3WE1F8M3yIn8HLhP878Z2v6g+edaeO7d252C+Kskf6OVfY9db+LCbOxX5wPwW95BekOoif7mNRUvgt7s4XQtc8CecGHHy0ldXYfHrxksFyCXxLUpr3M86AnVA+8.rz+y86A3NP8nY9IKTJAi8ni8bI6xNm3xAIJL9ys1gL.G3JSjlMW9.Ni6Mhyn15SzGQjWu7obCnsjR33GoRdP6iHtDrdR6uq8KfjMr.3IRA4hZy8Oeibmu90VQvEoV.ht6dNhEeu9bD+j7ffeJ7wXrsf22N5UQnxS+3PIPbyB+EVUBNuOzFUyH70S.1YUcspFigc35aaqn3uD1vLeapW.aZT.aZV.aZU.aVu.17jBXyu+FsQ8vksBj7wQK4.Ac2M7c1XZtq10U7eDbu5mF
-
@Lindon That's great, thank you so much mate! I have to dig into this, to find out what the code does.
When i use event.drag the dragged panel moves some kind of shaky, because the function is updated with every drag event, and then want's to reset it's position depending on if the threshold is reached.
Do you have an idea how to avoid that shaky movement, but not using event.mousUp? -
@toxonic - you dont have to move anything on every drag event - just when it matches you criteria.....
-
@Lindon Yeah, but since it should happen then immediately, i don't find another way. If i use mouseUp it and i move, lets say fx 1 to fx 5, they will swap their position, while i want to insert the fx 1 between 4 and 5
-
@toxonic then you need to know where everyone is - and what the current x/y mouse position is...
-
@Lindon Okay, i tried some things out and found a satisfying solution. I just put the for-loop to reorder the panels in the interface inside a second "if (event.mouseUp)" statement, leaving the rest untouched. Now it reorders the array on event.drag and rearranges the panel display on event.mouseUp. This way it works like an insertion, rather than a swap.
Thank you so much for your help! :-)HiseSnippet 1919.3oc6Z0sabSDE1NItvt7iJPAg3pgJTkCMjl8uTTSCrsIYSinIMJaZIUHzpI1yt6n3cFy3wIYAkGB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juaGUCG5zWgiE4N0u+ksffLWYZikghnNWdv.dHSloSkoOu28akB9tem4+bu62q.8il40SWJwGaSG36QVicHwiCTT936ZsJoKNzSlPMas7lbF2uOmQczSz6Pjmt8obCnGHkviejR4FM2g3Qv5EseRyGCEaXAfSjBhEUtzup9byWenUr6hTK.QWceNhoeo94H9W4ff+Mrw.rif2wI9UQnpSe8HJPbyh9uooD779vXTEinWOAHm0Byufw.XGtNNNJH9yfMLyWlpEPlZEPl5EPlFEPlEKfL2s.x74mqLpCWdPnjOHdIGPX60hdmMllqoccE+EXpsM8F�
-
@toxonic I had to try the "make the containers swap while dragging one container" as you said, this is my go for it
HiseSnippet 1933.3oc6Z8uaaajDlz1LoTosn8tbGJ5esmPQqbiphj+UOzbAU1x1IBM1wHxIWKJBBVStRbqo1kc2U1V3peatGj9HzGk9FjN6RJQxXJWK1lhq9hAbf2clYmY99Ft6Pt4.A2iHkbgks6giiHV1usSuwLUPm.LkY0caK6+tiheFmQ8PxSwQHIiFEQTVaMNBKkDeKa6EefVWa2krL+7ye4V3PLyijNkk0y3TOxinCopzYOn8WQCC2E6SNjNLi1q0tqGm0gGxGAw0hNMshvdGiGP1GqUaAGK6ariOUwE8TXEQZYuzVb+w8B3mxh0+YTI8nPhdPKqdvBEO8t7PecDqm0pS.Mz+fI4uzxx14fTzXwXz31N6Q8oSmOEUdOi.TpEYwC6ExGdKlK7ZkM7ZlI7JHjryDRKEGRuuSOOAMRkJQGO2xoKSQD8w.rmMTh00ZgO8lNc3fFLUig3iI6JfASsn1FMaVGA+yx2qRE.5kJzdPhd.lQBQ2GMwvADUG9vHNCFTq5TMpBVEazte8ArPYdK1LLbpQxZUAUlXSk6dW2GBLBREPPmgh3RphxYHbXnYJETTToOWfpEgnrjEe4JtQMjD01B7fAT1fs3iX9xZSCFsKeD2CGlHn4xfmb0tpKRBTBwrzbgOQfzqsdTev453FbhdXZpeBNbDQa6VDjbj1VNB7MBCAoPfGqGmyhOQFaCh1GQUHeNQx9DkdE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WqHh0JEQr1bRDqUdhX8YFfcuVQDqWJhX84jHVu7DwFyJ.+witVQDaTJhXi4jH1HGQbwuiy64rG2eTHVk+yJo+VZIBflUy8sbzeuFF7lEiy9s19c6aMcUCw224.pxKn3XbgBhQnk1WGwXxWn6cb1AJj7ToA3R.5+Z5ywciL9+lw9+u47Prv2i6S7gWaVpfJUv85331oRhEr6W2JWbsOQcJWbrk8e0YWL7V+u3ABHGdgAdAmOhc7TP7n+a63oyfpGJnCFPD4JFV7Jmostbf9I7QJ3Qs8vJAU2039iF1Cddyi.3LCdZP+ZQ1KneAl3wMmzYYOByuYxikuLQXK8X6DgslHrfBt4BLWoXv7sc1miXSF8+S.xpuAPxCHq8F.IOfr9a.j7.xFWmAj2MFPtkSOJiXtUujKzSOF8u02DwCHLhPe9dqK4B89oq5E5EckuPuG6o.2en.yjQbYtEtGYH8Pn4KY1Iepjrqf78OQ2vQ146vwhBE8ye4tPRVnM8vpQBSmKaNjOhox0oxhW1EK1pjWr3R+O2EK9mf9Qyc2mtShwdzgQgjcXmPB4vL5X7u3rMoOdTnZxr4qk2iy3QA5KvNKQ+Dh5hsOUXBsoRAuPR5L2t8Sh+d3oS8QseDTrgE.NQJIVzZtuG3B4qOvINbQ5G.Q+488HV7Z86Q7GxAA+Q3igXOA+EdwWmhtN8sLy.4My7eUCWm8ziQsrLWwBXmSyFMsFB6v8BOOMD+YvFlEayJkvlUKgMqUBaVuD1rQIr4yKgM+yK0F8gKaNRwGF+HGLwA6Xt2Ia6cx74J9EYkfxTC
-
@ulrik Wow, great! This is pretty much, what i wanted it to. :-) Thank you so much!
There's still somethin strange going on, when you click on a container without moving it, it will then move automatically to the first position after releasing the mouse button. Then i get some error messages, when i try to drag it:Interface:! Line 46, column 24: Unknown function 'set' {SW50ZXJmYWNlfHwxMjMwfDQ2fDI0} toxonic swap snippet:! Line 46, column 24: Unknown function 'set' {SW50ZXJmYWNlfHwxMjMwfDQ2fDI0}�
-
@toxonic hm...I tried clicking a lot now, no errors here, strange
-
@ulrik Mhhh, that's strange, indeed....