Hey,
Im planning on writting a simple script to grab all the render layers for a shot and shove in to a comp in the right order (eg bg, character, fg). Basicly it will prompt for a shot no, and then scan the shot folders final renders folder and grab each squence and put into the comp.
Q: how do i get after effects to return the contents of a folder so i can scan the conents of each final render folder?
Ive been looking at the smart import script, i reckon the key is in there somewhere. I tired the following as test :
var theFolder = ("/c/lsd");
var gfiles = theFolder.getFiles();
But it always returned an error. I want to spesify the path becouse it wont change durring the project. And ideas?
Cheers,
Nick Deboar
/Digital Director/
*The People's Republic of Animation
http://www.thepra.com.au*
Collecting render layers into a comp
Moderator: Paul Tuersley
-
- Posts: 704
- Joined: June 5th, 2004, 7:59 am
- Location: London, UK
I think the problem is that you aren't properly defining a folder object. Try this:
If that doesn't work, there could also be a problem with the /c/lsd bit. It sounds like you're on Windows and I don't have any experience with file paths on that OS. But you could write a litttle script like this to find out the correct way to write the folder path:
Code: Select all
var theFolder = new Folder("/c/lsd");
var gfiles = theFolder.getFiles();
Code: Select all
{
var theFolder = folderGetDialog("Choose a folder");
alert(theFolder);
}