Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Import PSD sequence as a composition through script

  • Import PSD sequence as a composition through script

    Posted by Sébastien Parrinello on October 31, 2016 at 9:53 pm

    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; i

    When 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 !

    Sébastien Parrinello replied 9 years, 9 months ago 1 Member · 1 Reply
  • 1 Reply
  • Sébastien Parrinello

    November 1, 2016 at 4:08 pm

    I’ve found that this problem doesn’t occur when I import a single psd file, when I remove this line io.sequence = true;

    That way it works fine, I get my comp and the folder with all the layers. But what if I want to import a sequence as comp ?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy