: Place every object from a single layer to a new layer in InDesign is there a possibility to place every object automatically from one single layer into different new layers in InDesign? Thanks!
is there a possibility to place every object automatically from one single layer into different new layers in InDesign?
Thanks!
More posts by @Deb5748823
1 Comments
Sorted by latest first Latest Oldest Best
This script should work for a single page scenario. It splits up all your top level page items into layers and should keep them in the correct order:
// @target InDesign
var doc = app.activeDocument;
var page = doc.layoutWindows[0].activePage;
var items = page.allPageItems.reverse();
for (var i = 1; i < items.length; i++) {
if(!(items[i].parent.constructor.name === "Spread")) continue;
var newLayer = doc.layers.add();
items[i].itemLayer = newLayer;
}
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.