-
Import PSD sequence as a composition through script
Hi everyone !
I’m writing a script to import multiple PSD sequences into a project. The user selects the sequences he wants to import, these sequences are added into an array and then After Effects imports each one of them in a row.
The PSD sequences are generated using the PSD Manager plugin for 3Ds Max so it contains all the scene layers and objects I need for my compositing.
Problem is I want to import these PSD sequences as compositions in After Effects.
I’ve been reading the scripting guide and I ended up with this code (very early stage):var sequences = new Array();function add_sequence()
{
var sequence_file = File.openDialog();
if(sequence_file != null)
{
sequences[sequences.length] = sequence_file;
}
}function import_sequences()
{
for(i=0; iWhen I add a sequence then launch the importation, the After Effects import dialog pops up and ask me wether I want to import it as a footage or import only one layer of the sequence.
The option to import it as a composition is greyed out. I can't get all the layers.
This problem occurs only when I try to import through extendscript. When I import using the right click -> import -> File method I am able to select the composition option.
I haven't found any solution yet although it seems to be working fine for some people :/
Do you have any ideas ?
Thank you !
