Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Show/Hide Layers and Add to Encoder Script

New Here ,
Jan 06, 2022 Jan 06, 2022

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!

AitorCaptura de pantalla 2022-01-05 a las 10.54.10.png

TOPICS
Expressions , How to , Scripting
190
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 07, 2022 Jan 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2022 Jan 07, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2022 Jan 07, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2022 Jan 07, 2022

Thanks! I will have a look at those 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2022 Jan 07, 2022
LATEST

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);
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines