Skip to main content
Soileau Photo and Video
Participant
July 28, 2024
Question

Pre-comps automatically placed in folder

  • July 28, 2024
  • 1 reply
  • 254 views

Hello, all! I am experimenting with a new workflow and have come across an issue. I am a wedding videographer who works with lots of clips and do not want warp stabilizer and Neat Video bogging down my projects. Instead of transcoding all of my files in Media Encoder and then applying these effects in my Premiere project and then having to toggle effects off to allow smooth playback, I have decided to apply these effects directly to my log footage in After Effects and then use a script to render all layers seperately. This way I get my most hardware intensive effects out of the way when transcoding. So I imported all of my files and then opted to open each clip as a seperate composition; If I didn't do this I would have to either toggle visibility on each clip as I make my way down the layers, or add one layer to the timeline at a time as I go. With each layer as a composition I can simply click the next project as I go. I then complied all of the video files and newly created comps into one folder. My plan was to add warp stabilizer, pre-compose, add Neat Video, and then move on. I envisoned that all of the pre-comps would then be created outside of the folder, isolating them from the files and comps inside the folder, allowing me to quickly select and add all of the pre-comps to a new timeline when finished so I can utilize the layer rendering script. Unfortunately, every new pre-comp I create gets placed into the folder with the other files. I was wondering if anyone knows a way to make the pre-comps be placed outside of the folder, or if anyone knows a better way to accomplish this end goal. Thank you!

This topic has been closed for replies.

1 reply

Legend
July 28, 2024

You can move items using parentFolder

    function findFolder(name) {
      var proj = app.project;
      for (var i = 1; i <= proj.numItems; i++) {
        var item = proj.item(i);
        if (item instanceof FolderItem && item != null && item.name == name)
          return item;
      }
      return null;
    }

    function findComp(folderName, compName) {
      var folder = folderName ? findFolder(folderName) : app.project;
      if (folder) {
        for (var i = 1; i <= folder.numItems; i++) {
          var item = folder.item(i);
          if (item instanceof CompItem && item.name == compName) {
            return item;
          }
        }
      }
      return null;
    }

var proj = app.project;

// findComp('Folder 1', 'Comp 1').parentFolder = proj.rootFolder

// findComp('Folder 1', 'Comp 1').parentFolder = findFolder('Folder 2')