Skip to main content
Participant
May 28, 2018
Answered

Help me to automate stacking 350 videos one above the other, please

  • May 28, 2018
  • 1 reply
  • 514 views

Hello,

i have to stack 350 videos, one above the other, for an app (top Video:fill down video: key) does anyone know of an automation that can be easily

adapted for my purposes? Unfortunately i'm not very good at scripting in extendScript. The source video format is 1080x1920, the final videoformat is 1080x3840.

Thank you very much

Flo from munich.

    This topic has been closed for replies.
    Correct answer Rick Gerard

    If you already created 350 videos and keyed out the background then you should have rendered with an alpha channel. Then there would be no need to stack up the layers and use track matte or set matte to give you transparency.

    If you want to automate the process then you have to write a script that puts the alpha layer above and sets it as a track matte or apply

    Set Matte to give you transparency. Personally, I'd just open up the existing comps and drop a new background on the bottom layer. It's going to be less work and take less time to render than rebuilding all of the composites.

    1 reply

    Community Expert
    May 28, 2018

    Name the videos giving each a three-digit number that corresponds to the layer order you want, import all of them, select the first video in the project panel, then hold down the shift key and select the last, then right click or go to the file menu and choose File>New Composition From Selection.

    Open up the composition settings and change the size of the comp.

    Now you can either grab each layer and position it where you want it to be or get a distribute layers script. I have a couple of them that I'll share. The top layer gets this animation preset which adds two sliders. One sets the number of columns and the other sets the spacing between layers. You must name this layer "DL controller" to keep from breaking the second animation preset.

    Dropbox - Distribute layers-DL controller.ffx

    The next step is to select all the remaining layers and then apply this animation preset to them all:

    Dropbox - Distribute layers slaves.ffx

    Now you can drag the top layer to the upper left corner of the comp and the rest will follow. You can then select all layers, press S to reveal the scale property and scale them all down at the same time so they fit the composition. A comp would look something like this:

    If you need more help than that let us know.

    Participant
    May 28, 2018

    Thank you very much for the detailed answer, but I think I expressed myself misleadingly.

    The 350 films were filmed in front of a green screen, then they were keyed in After Effects.

    Now 350 films should be created in which above the fill and below the key is (see attachemnet).

    The individual films (key&fill) have already been rendered, now it's all about to put them together, preferably automated, and render 350 films again like the attachment.

    Thank you very much and sorry for my bad english

    Rick GerardCommunity ExpertCorrect answer
    Community Expert
    May 29, 2018

    If you already created 350 videos and keyed out the background then you should have rendered with an alpha channel. Then there would be no need to stack up the layers and use track matte or set matte to give you transparency.

    If you want to automate the process then you have to write a script that puts the alpha layer above and sets it as a track matte or apply

    Set Matte to give you transparency. Personally, I'd just open up the existing comps and drop a new background on the bottom layer. It's going to be less work and take less time to render than rebuilding all of the composites.