-
Trying to batch process the “Create Shapes from Vector Layer” command.
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?