Saving and Loading Presets Efficiently



  • I want to allow users to save and load presets (after exporting the plugin as a VST) and I am not sure how to do this.
    I want to:

    • Allow the user to name the preset
    • Save all slider, combo box, and table information to a relative path on computer
    • Access that preset through the use of Viewports on the interface
    • Retrieve all slider, combo box, and table information and set values

    I am confused about how to properly use relative paths. Any help is greatly appreciated 🙂

    See Hise Snippet:

    HiseSnippet 4840.3oc67zzbajbcCH4PIBItR1R1Nd8GaaD6PPKHJ.vukyVDheokdIEYHnn7VZUjGfoAvXMXZ3YFPJraopTkpRUw+AREeSox8T4pqbH5ZpbIt1CohOjRmhKW9PzsjaJut64itmACvPZw0RdMkJRLc2uW+5260uu5dvd1j5XGGhsRlINnWGrRlKpVsmkaq0ZoYXor05JY95pUIMbYMhVsqgoNZtqWpz0Ksrxp85n43f0UxjYzaSGdlIFSg8yKWYUMSMq53vlTTNjXTGusQaC2vV2qxGZXZtolN9.i1BidtJaUmXsFwjzEHsQUKpzQq9izZhuiFcXinpjY7MzMbI1Uc0bwNJYFaUhdupsHGawG+gFNF0LwzGJoTEPDu4MIl5TJl1pxZsfkyd9r.GE.o6ExPFkyPtp5NF5FAsGxXtLqCTHDh7iLiLHxqjH4UL8jWFAxaLN48kTqV21niaXOTZ6BpaY4hsanAh.QxhOVkQtwUTWi.ivxcl1ZOBuoM7P.D4KUrXwBnEKVb5evjYuwMPeHtWMhls9jYAghiK5HM6f1PuOxGSZ55aZRzbMrZdfgINeN+wjq.55kmEP4BkWfhRe.bvTxtC110.6.zP6eX0cuS9o7AapBe5jYQHzTGan61ZpahVZ9hE3szBazrkKzzhky9DJJ8gghSOzutlqV9OcJJaBFXHVYim9uabi0nKG6t0AAkCxkffkmqMwD0QyFzy.1gChz.0ln20D6Ht5usIollIUm8PMaCMK2cniQCvSIfgv1rLSSbXq4ywg.QAA4ACJDnbTZJD80bs1WyRmz13Sv2xzTlGuZWWWhU9oBFABFxTElq7hEJWtnLhtm1Q3FD612FagsoyjH0wzuXOkeJ+AhBFY4ojQEafXG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plMFUcAUZxknv2tLU0qWdNexpXTxh1a4ASXxr73unreM0xyOSokWZtRytzbKszhKr77mT1d76fGctKGawcIUZoMPATvYJWu+DUbN9kUY0U40IUIyx8u2jy5ywY3Vh6l.DychgX9SLDKbhgXwSLDKM.HnQVbqttj1duM.J6r2F7ZfmI3pDjYTk+e.ULFqjB
    


  • There‘s a dedicated user preset system which does exactly this. Search the forum, it should be covered in quite a few topics.



  • Problem solved by adding a Floating Tile to the project. Then, under ContentType, choose PresetBrowser.


Log in to reply
 

10
Online

474
Users

1.6k
Topics

12.1k
Posts