Adobe-CEP / Samples

Code samples for CEP extensions
MIT License
972 stars 551 forks source link

ExportAAF example is wrong #151

Open HeyEvgenii opened 7 months ago

HeyEvgenii commented 7 months ago

at https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx ExportAAF function example is misleading, with the set arguments function will return 1 due to the 'explode to mono?' argument, changing it to 1, will enable other params be accessible. Also the function takes 14 arguments, not 11

app.project.exportAAF(  app.project.activeSequence, // which sequence
                                        fullOutPath,    // output path
                                        1,              // mix down video?
                                        0,              // explode to mono?
                                        96000,          // sample rate
                                        16,             // bits per sample
                                        0,              // embed audio?
                                        0,              // audio file format? 0 = aiff, 1 = wav
                                        0,              // number of 'handle' frames
                                        0/*
                                        optionalPathToOutputPreset*/); // optional; .epr file to use