save user preset



  • 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.

    I've tried

    Engine.saveUserPreset();
    

    but it doesn't seem to output any data or create a file?

    I also tried

    Content.storeAllControlsAsPreset()
    

    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?



  • 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();
    

    EDIT:
    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()?


Log in to reply
 

9
Online

747
Users

3.0k
Topics

24.8k
Posts