Save/load SampleMap with a Panel to User Preset
-
I dug myself an interesting hole here.
I created a customized menu using a panel for loading sample maps. It's working fine in terms of LAF, callbacks and loading sample maps.
Last stage I can't crack is how to save and load user presets with it. The Custom User Preset tutorial is broken though the script does help shine light on the solution. The Custom Sample Import I know contains the answer I need but is a little turgid for me.
Given its not a preset browser I am working on, can someone share a snippet on how to save and load the state of sample maps?
HiseSnippet 4119.3oc0aEtbaabDlz1zIjIoMIMsS+Sl4LmNojiokHkrh6XE2HJJRaNgRhkjxwpZ7jAB3DIpAAv..JI1XMSdh5zGg9fzGh7Fzt6c3.tC.jhR0Isk+Pl3t8Nr22s2te6dzzKCn1FTiuy21z0kFjKW9612yQm5663kKewQyco4x+gEFN2NXRqIZl145tWt7+lBsl4G3L07uRMZ4L8TmSctj5ma24tZ99Tib4ye2mixlu38xw97ie8tZVZ15z3lxk6kNl5zdlSMChas+NeiokUGMC5HyoRR+3c5p6X2xwxYFnW2sP8btZ5uQaL8.MTr6THW9621vLvwaXfV.nK4u2tNFyGNw4Bat7uzz27TKJ9PibCgIh2bGGKCTiwVy0ZhokQz52GPiBRnwc4nwmUXeSCyn1iQkOl0AIdDx3Q96npd2UQ8ZHqd0kTuLTo7Rpz83pzmTXntmoaPbOn97AE5ZGP8NSCfcYUgKat7+yBsb.ArCVap1anc7fGhFPkspWuFA9S0sKAeLs0slYPqTtyk6Ssms1ewuLqiylYqGX5XSbrOvIfdnckpk99REKcUIRxtN6rL6CUAOGKKpWlciVAdKafUrmM8TpWMx4ZVynQBBPiJdWXw3sr4fNGQjDzwtqsYvgtT6EYjjKDFg8l6DpUfnArclORrynYSsxYZfGlPDj8bibLkV9LQtqeB9kEFpM00htmmCbj0Ki43nt6oEnglJgZFnsfjAlHPjeO54v4NtgSwB6Q8eSfiKS0m55Xiqi7u2he2nxiyJXzCu6KkeuykePyxx4hVveOENm5iyUKKS3ajCsslm6BSifIwhGryDp43Iw9A1wYGEE5i3JzmFpPTiWZRuv0wKPRqDM0XIZkqlGL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