Skip to main content
Participant
January 7, 2022
Question

Show/Hide Layers and Add to Encoder Script

  • January 7, 2022
  • 3 replies
  • 258 views

Hi all,
I have got a multilingual project where there is a main footage and then 6 different languages with copy divided in 6 comps.

I am looking to speed up my work with an action o script to export(add to encoder) the same comp with each language and add the language at the end of the Comp name. e.g. Comp_EN

The process will be like this one.

1- Show layer ES
2- Add Comp to Adobe Encoder
3 – Add “_ES” to the end of the Output comp filename.
4 – Hide layer ES

and so on with the others languages.

If you can advise on this I’d be very grateful.
Thanks!

Aitor

This topic has been closed for replies.

3 replies

Participant
January 7, 2022

well found the solution myself

to show layer

app.project.activeItem.layer("name_of_the_layer").enabled = true

to export to Encoder

function ameRender(comp) {
var bt = new BridgeTalk();
var path = "~/Desktop";
if(!BridgeTalk.isRunning("ame")) {
BridgeTalk.launch("ame","background");
alert("Launching");
}
 
var rqItem = app.project.renderQueue.items.add(comp);
var module = rqItem.outputModule(1);
module.file = File(path + "/" + comp.name);
app.project.renderQueue.queueInAME(true);
}
 
var project = app.project;
var thisComp = project.activeItem;

 
ameRender(thisComp);
Mathias Moehl
Community Expert
Community Expert
January 7, 2022

Tools like CompsFromSpreadsheets or Templater might help to automate your processes.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Participant
January 7, 2022

Thanks! I will have a look at those 😉

Mylenium
Legend
January 7, 2022

Why would you trouble yourself with a script? Simply duplicate the comp, Name the duplicates appropriately, hide the unneeded layers and set the naming template in teh render queue to use the comp name. Takes five minutes.

 

Mylenium

Participant
January 7, 2022

Hi Mylenium, thanks for your reply.

 

That's what I am doing at the moment, show and hide each individual layer, export and change the output filename, but I need to to do that repeating process times 6 languages and times 6 comps, a buch of clicks and renaming, it becames like 30 min.

As it's a repeating process I thought there would be a script to do that, Show specific layer, export and set output filename.

 

I will continue investigating, cheers!