A Couple Preset Questions
-
Does anyone know…
-
What
setEnableUserPresetPreprocessing
is for? -
Does
Filesystem
have a constant for finding the user Presets folder? -
If it's possible within any of Preset callbacks to know the name of the Preset entered by the user?
-
Exactly what is tested with
runTest
? -
what is the intended use for
getSecondsSinceLastPresetLoad
?
Thanks!
-
-
-
It's so you can process presets before they are loaded. For example if you've changed the components on your UI but want to ensure old presets still work with the new layout. You can redirect their values to new components, or modify the values as needed.
-
FileSystem.getFolder(FileSystem.AppData).createDirectory("UserPresets");
(or it might be "User Presets"). UsingcreateDirectory
will return the directory if it already exists and create it if it doesn't. You could also use.getChildFile()
-
PresetHandler.setPostSaveCallback
I think gives this info - needs to be checked. -
No idea.
-
Not sure but it might be to allow you to stop a double preset load if you're using a mouse event handler on the preset browser for example.
-
-
@d-healey Thank you, Dave. For #1, do know how to use it—like, what functions are called? (And does this require the Custom Preset Manager?) Thanks, man, as always.
-
@clevername27 I'm not sure but I think you use the
UserPresetHandler.setPreCallback()