In this localization project, I was working with another animator who automated the localization of text in different languages by using an After Effects slider to cycle through a spreadsheet of copy, and replace each language based on on the slider (column) number. By the time the animations were hooked up to the slider, and spreadsheet, the software was very clunky. I wrote a script to automate moving the slider, which would replace the copy, and save each new file based on the new language, for every column in the spreadsheet. Then I wrote a script that would bake all the text in the new file, so it wouldn't be referenceing a spreadsheet (so you could edit it easily).
During covid, my team and I were tasked with localizing hundreds of Youtube videos in many different languages to promote staying at home. They needed the lower-thirds and end-cards to be localized, as well as the video of each youtube influencer to be replaced. The first challenge was getting all the videos off of google drive, where the links were provided in a google sheet. I had to write an app script to go to the link in the sheet, copy the video, then paste it in to one folder, and rename each file based on the name in the spreadsheet. This way I could download the videos at once. I wrote another script to replace the videos, based on their names. Another script changed the lower-thirds and end-cards based on a spreadsheet.
The first job was to take screenshots of the new feature in action. This could not be automated. Luckily, I could write a script to crop and organize the screenshots based on the time they were taken.
After completing our 3 initial animation templates, I needed to build the rest of the compositions using our localized screenshots. This could be automated using javascript.
Not only did the animations need to be converted in to gifs, but they needed a specific color pallette. I could write a script that would use Photoshop actions to load a specific color palette, then optimize and export the .movs as .gifs.
The goal here was to capture each screen of the new UX, in each language, by taking screenshots while using the sample interface. This process had to be the well defined so it could be repeated across all languages, normalized (meaning cropped and named/organized), and programmed into the templates.
All screenshots needed to be taken from mobile mode in Delevoper Tools at 150%. This had to be done manually. However I could write a script to normalize the screenshots so they could be easily dropped into the animation templates.
The Photoshop, javascript script cycled through a directory of png screenshots, then called on a Photoshop action to crop each screen. Then the javascript named each file based on the date/time each screenshot was taken. This allowed for the screens to be organized, replaced, and easily accesible for another script to build the localized aniamtions.
Now that we had all the screenshots cropped and organized, we needed to build all 39 animations in After Effects.
Using object-oriented-programming, the script creates a localization object for each country that can be used to create each localized composition.
From there, a method takes that object, finds and duplicates the template composition, then names it based on the country + template.
Lastly, this script went in to the new composition then replaced all the layers with with localized screen shots.
After creating all the compositions, the next step was to render out all the animations. Once that was completed, the challenge was to convert all the .MOV files to .GIFs.
Normally, this can be very time consuming (creating GIFs from MOVs). This is because it takes a while for Photoshop to load an mov file, expecially if it's high quality. Then when you need to select specific settings, like # of colors, specific colors, dither, color mode, etc, the sotware can become really clunky. Luckily I created a script to cycle through a directory of MOV files, and convert them to gifs. You can select specefic attributes before the script executes. This script was my most useful script at Firewood and saved me the most time, and I used it to export thousands of gifs.
Also I had to modify this script to execute some photoshop actions. These actions made the gifs only loop twice, and used specific color pallettes in the gif. The script would determine which Photoshop actions to run based on the name.