Hi everyone, I found MSExportPreset class in the sketch header, but haven't been able to figure out how to make use of it. Any helps would be so appreciated!
Ah, i got it by doing:
var presetFormat = MSExportPreset.allExportPresets().exportFormats()
selected.exportOptions().setExportFormats( presetFormat );
Please let me know if there's a better way.
That would be the way to do it yes