Nexrender: Running AE scripts without rendering AE File

Created on 16 Jun 2020  路  3Comments  路  Source: inlife/nexrender

Hi,
I wanted to ask whether nexrender can just run the AE script without actually rendering the AE file, Is there any possibility to do this ?

Thanks :)

question

Most helpful comment

Sure @SMakc

const settings = init({
        logger: console,
        skipRender: true,
});
let project = {
      "template": {
            "src": "http://example.com/assets/myproject.aep",
            "composition": "main"
       },
      "assets": [{
           "src": "file:///C:/sample/sampleParamInjection.jsx",
           "type": "script"
       }]
    };
const data = await nexrender(project, settings)
        .catch(renderError => {
            console.error(renderError);
            throw renderError;
        })

Cheers :)

All 3 comments

Hi,
I have found the solution.
By adding 'skipRender: true' within settings and then passing the setting the nexrender function.

Thanks :)

@darshak-gosar Can you show an example of your solution?)

Sure @SMakc

const settings = init({
        logger: console,
        skipRender: true,
});
let project = {
      "template": {
            "src": "http://example.com/assets/myproject.aep",
            "composition": "main"
       },
      "assets": [{
           "src": "file:///C:/sample/sampleParamInjection.jsx",
           "type": "script"
       }]
    };
const data = await nexrender(project, settings)
        .catch(renderError => {
            console.error(renderError);
            throw renderError;
        })

Cheers :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dezzymei picture Dezzymei  路  3Comments

oskobri picture oskobri  路  3Comments

danielgwilson picture danielgwilson  路  3Comments

amarCosmospace picture amarCosmospace  路  3Comments

byumark picture byumark  路  3Comments