Highlighted

how to change render output directory

Explorer ,
Jun 01, 2020

Copy link to clipboard

Copied

Hi,

I am trying to simply change the output directory in my output module to a new path and I get errors.

I have this code:

 

var new_Path = "/path/";
app.project.renderQueue.item(1).outputModule(1).setSetting(new_Path);

 

and I get this error:

Unable to call “setSetting” because the call requires 2 parameters.
Any ideas..?
Thank you!
 

Hi again,

I actually solved it like this:

app.project.renderQueue.item(1).outputModule(1).file = new File("/path" + myComp.name);

I am not sure if this is the best way but it worked. If anyone has a better idea, please share.

Cheers!

TOPICS
Expressions, Resources, Scripting

Views

242

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

how to change render output directory

Explorer ,
Jun 01, 2020

Copy link to clipboard

Copied

Hi,

I am trying to simply change the output directory in my output module to a new path and I get errors.

I have this code:

 

var new_Path = "/path/";
app.project.renderQueue.item(1).outputModule(1).setSetting(new_Path);

 

and I get this error:

Unable to call “setSetting” because the call requires 2 parameters.
Any ideas..?
Thank you!
 

Hi again,

I actually solved it like this:

app.project.renderQueue.item(1).outputModule(1).file = new File("/path" + myComp.name);

I am not sure if this is the best way but it worked. If anyone has a better idea, please share.

Cheers!

TOPICS
Expressions, Resources, Scripting

Views

243

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 01, 2020 0
Explorer ,
Jun 01, 2020

Copy link to clipboard

Copied

Hi again,

I actually solved it like this:

app.project.renderQueue.item(1).outputModule(1).file = new File("/path" + myComp.name);

I am not sure if this is the best way but it worked. If anyone has a better idea, please share.

Cheers!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 01, 2020 0