DragabbleFilterPanel Won't Save With Presets!!!
-
@Natanr You're right. Well spotted. This could be a big problem.
It's a shame there's no 'saveInPreset' button in the properties for floating tiles. I'm sure there's a good reason why there isn't, but a workaround is definitely needed.
@Christoph-Hart Any ideas?
-
Ah, yes that's right. The problem is that the floating tile is not supposed to store data but is only a stateless "overlay" for certain UI tasks, however the eq panel definitely violates that law.
There's no easy fix and I have to think about a proper solution on an architectural level. Maybe I need to just propagate entire modules to be included in a user preset (I am using something similar in a C++ project I am working on).
-
@Christoph-Hart @SteveRiggs
I Just Compiled A Plugin , And The Bad News Is That By Saving And Reopening The Project , DraggablefilterPanel Goes Back To The Settings That I Used In Hise.
Kinda It Overrides The Eq With Init 🤠-
@Natanr
@Christoph-Hart said in DragabbleFilterPanel Won't Save With Presets!!!:
There's no easy fix and I have to think about a proper solution on an architectural level.
I think it will get fixed eventually, but as Christoph said it's not an easy quick thing to fix. We might have to wait a little bit for this one.
-
@SteveRiggs The Plugins Is Almost Ready To Release .
This Is The Third Time That I Started A Hise Project And Stucked :( -
Actually I've silently rolled out a fix for this but told no one :)
You can now add entire modules to be stored in a user preset using the scripting call
Engine.addModuleStateToUserPreset("MyEq");
If you do so, the preset star will appear next to the module header:
The next time you save a user preset, it will store the entire state of that particular module in the user preset, so in this case you don't need to bother at all about the FilterDragPanel, as it will update itself.
Be aware that you can call this method only for modules which have absolutely no child modules, otherwise they would get discarded and might cause dangling references (I deactivated the call for modules with children).
-
@Natanr I feel your pain mate. It's happened to me a few times. Luckily updates usually get done pretty quickly.
Hopefully this one won't be ages. I just try and move onto the next project in the meantime to keep things moving while I wait for the fixes.
I've just recently built these EQs into a lot of my projects as well so I will also have to wait before I can do anything with those now. I didn't even notice they weren't saving the settings until you mentioned it.
-
@Christoph-Hart Good timing lol
-
@Christoph-Hart Oh My God :) <3 Oh My God :) <3 You're The Life Saver Christoph
Right On Time :) God Bless You Man -
@Christoph-Hart ANd If Possible, Could You Supply A Short Snippet, Just Placing The Code In On Init , Gives me Errors
-
Sadly This Fix Is Out Of My Knowledge
Console Gives Me The Error Belowconstant not found: Engine.addModuleStateToUserPreset
-
@Natanr Have you built the latest version of HISE?
-
Yes, Mine Is Scriptnode , The Latest One I Guess
-
@Natanr Did you build it today?
-
@d-healey No, It's For A Few Days Ago.
Where I Can Find The New Version, Thanks David -
Pull from GitHub and rebuild :)
-
It was updated 5 minutes ago - https://github.com/christophhart/HISE/tree/scriptnode - and that update is going to make some people very happy :)
-
@d-healey said in DragabbleFilterPanel Won't Save With Presets!!!:
hat update is going to make some people very happy
Thank You, Dear David
-
@Natanr Thank Christoph :)
-
@Christoph-Hart Christoph Youre The Man
HiseSnippet 722.3ocuU91aRCDF.+NfaQPm5h9AnYuhkLWJ51zjEiyAECQYqJrEe2xsqGiKq8N10qSIF+N62.84ZgUpRPjDW4M77u1e2y+NeshwiiUZDtZ+wi3H7CH8FKMCaNjJjnNsP3GR5RiMbsSlpiFOhFGyCPXb42YUfqVAk97i2bDMjJY7bUHzYJAi+AQjvjq0+v2KBCaSC38EQy38tG1gojMUgpDfmxDWzHJ6J5k7ioV2JQP307BDFktmgZ3wHbkiTAi6MT8EYl+mIhEWDxsBMP8fWTl51pv.KwVsnlCEgA9SO2wH3s3mmEJmkEdJoqHPbq97rwiSM3jGwr4CboEgWi+NdtyCO7L3UICuMH8XZwHStEKa2mzQBEpATnDLKVY9hJ8DLooB7PZ1IhdEusFDtMh5665tsydttacv50r+fRQrw4Fp1wmpgBfQKt16iMbdsim7RgjuCMHnqJHIjmdb6qNMlq807Xto9lEBYysNXPhjYDJoiRdrxvOQVeqZeqV0ZeulyuaZvf4ZyRtVEFx0y0rsSRun.qKShtfq2FNQgI7acDRoEqYqsb0LVVhbFGUxNRg4jQ7IxKtoCMoR.+6zNsnFpsPOQG32Ht1Hr3fawuAlfxJ6UIs3wWYTifYn+nm.5LsUCpoX6pcFchAHeTnuvV6kwBy3Ymg+G5gcW5QrkE2MH9BCa374szb3ExZ+u4cxFg0IdCFvYlbXqPZ+463wexz9flI5a3dWmxwiHEl1JfzwIQsEgvHNfCAayWsa22SRALxPtbQjKubHOmL1mTIFg7xtT.iuBeL3K2C1iy3PBSJ4go.Tx13mI6NEndbYPpvOgmIFaXkwSL1Xpw6juQDkoUmyxVZXy+2KUCbtko2BUEtNDjcZfRWj.wQb2wEEA2JbNiY6JdFzQM+Xd9JDyKVgX1cEhYuUHl8WgXd4JDyqVXL1KjeahQEksw.T36ktQEimoSG8KzgXnAB