-
Intense scripting: Smart Importer (finally)
Hey Guys, I’m working on a script and I’m a little over my head/don’t put as much time into it as I want. So I’m posting it here in the hopes that some of you would be interested in helping me develop it further! I’m never planning on selling this script and I’m not a professional coder, so I’m throwing it out there for free and as I update it I’ll share with anyone who is interested.
THE SCRIPT
I work on many CG shots a day and as such import a LOT of image sequences. They come in different organizational flavors – sometimes they’re in sub-folders, sometimes there are like 12 sequences in one folder, most times just both. As I’m sure all of you know importing a lot of sequences in After Effects is a real pain and sometimes I would miss a pass or two – so I needed something that would make it easier to import hundreds of frames in one go. I tested out Lloyd Alvarez’s Immegration script and while it was able to do what I wanted I decided to take a whack at it and come up with my own script so that I could tailor it to my studio/workflow. In it’s current stage it actually works pretty well, it allows you to select a folder and it will recursively import any image sequences it finds within that and any sub-folders. Already it has saved me a LOT of time!So at this point I’m happy to release it to the Cow and see if anyone else can come up with any improvements, or just use it if you want. I consider the script far from complete so undoubtedly you’ll run into bugs and slows here and there, but I have been using it in production for a little while now and it definitely works. What I’m hoping to get help on in a development sense is mainly cleanup and optimization.
As a note I’ve only run this on Windows in CS6. I don’t have a Mac so I have no idea what will happen if you try it! (Adobe CC should work fine, but I haven’t tested it yet)
To use it just copy-paste the folder URI into the “Path” box and import (it will import into any selected folders in your Project panel). The “Choose Folder” button might be a bit confusing because it actually looks for a file – but don’t be fooled, it will select the parent folder of whatever file you choose (my thought was that you could just click the first frame in your main folder and it would import everything in that folder plus all sub-folders). “Skip Existing” theoretically works, but it needs some cleanup – it can be a bit slow and sometimes bugs (could use help here!). If you are importing over 2000 frames or so AE will hang for a minute, but I haven’t had it crash on me yet.
– Spencer