save user preset
Dan Korneff last edited by
I'm looking for a way to create a preset outside of the Preset Browser.
Just a button the user can hit to name and save the current settings.
but it doesn't seem to output any data or create a file?
I also tried
but the data it creates is different than a preset created by the Preset Broswer, and loading the file creates unexpected results.
File created with Content.storeAllControlsAsPreset() contains:
<?xml version="1.0" encoding="UTF-8"?> <Preset> <Content Processor="Interface"> ...stuff </Content> </Preset>
and a file created with the Preset Browser contains:
<?xml version="1.0" encoding="UTF-8"?> <Preset Version="1.0.0"> <Content Processor="Interface"> ...stuff </Content> <MidiAutomation/> <MPEData Enabled="0"/> </Preset>
Is anyone successfully using either of these to create user presets?
Dan Korneff last edited by Dan Korneff
ok. Got a solution working pretty well... on everything EXCEPT AAX
@Christoph-Hart It looks like AAX does not like
Engine.loadUserPreset(); or Engine.saveUserPreset();
It looks like Engine.saveUserPreset() IS working, but Engine.loadUserPreset() is not.
I'm using the workaround to Load a preset before you call saveUserPreset, but I just can't get it to load.
Using the preset browser works as it should in PT. @Christoph-Hart What else is the Preset Browser doing when it Loads a preset that I can't achieve with Engine.loadUserPreset()?