Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Trying to batch process the “Create Shapes from Vector Layer” command.

  • Trying to batch process the “Create Shapes from Vector Layer” command.

    Posted by Luis Giron on February 26, 2014 at 11:08 pm

    I’m trying to write a script to batch process a bunch of layers brought in from illustrator to convert into shapes.

    This is what i’ve come up with so far:

    var myComp = app.project.item(1);

    for (var i = 1; i < myComp.numLayers ; i++){
    myComp.layer(i).selected = true;
    app.executeCommand(app.findMenuCommandId("Create Shapes from Vector Layer"));
    myComp.layer(i).selected = false;
    }

    I think the problem is that since you can’t (for some strange reason) select multiple layers and execute this command (the option grays out when you try), the program just misses the rest of the iterations. Anybody out there found a work around for this?

    Bas Mooij replied 11 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Bas Mooij

    July 31, 2014 at 9:24 am

    I’m looking for the exact same thing!

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