Expressions/Scripts/Presets

Moderator: Paul Tuersley

 
johnnygjunior
Topic Author
Posts: 3
Joined: Thu Jun 29, 2017 8:55 am

accessing Render Output TO: [Template] with Javascript

Thu Jun 29, 2017 9:02 am

Hi,
   I was wondering if there is a way to set the "Output To:"  a template like  [COMP].[ext] through Ext Javascript.
I've been looking all over and can only find how to set a template for an output module, but I can't find how to access the Output To Templates.

I am looking to set the filename to [projectName].[ext]

when i save [projectName].[ext] as "Project Name" - i've tried to access it using  
theRender.outputModules[1].applyTemplate("Project Name");

but i get an error that it does not exist.

thank you in advance.
Johnny G.

Johnny G.
 
johnnygjunior
Topic Author
Posts: 3
Joined: Thu Jun 29, 2017 8:55 am

Re: accessing Render Output TO: [Template] with Javascript

Thu Jun 29, 2017 9:52 am

I seem to have figured it out.   I think.


/// windows os 
var dir = "/c/folderName/foldername/";
var myFile = new File(dir + "[projectName]_[####].[ext]");

I hope that helps someone.   projectName is not using the saved template i created... rather its using the fields already created in afterfx

Who is online

Users browsing this forum: No registered users and 2 guests