Sg2.9
duplicating a complete layer
Recent RSS
duplicating a complete layer
From:  verT!c4L
Date:  4. March 2008, 21:20

hey, i ´m looking for a solution to copy+paste layers.
this is what i got right now:

var srcDoc = documents[0];
var srcLayer = srcDoc.layers[0];
for (j=1, p=2; j<pages; j++, p++){
var targetLayer = srcDoc.layers.add();
for ( k = 0; k < srcLayer.pageItems.length; k++) {
var srcItem = srcLayer.pageItems[k];
var dupItem = srcItem.duplicate( targetLayer, ElementPlacement.PLACEATEND );
}
targetLayer.visible = false;
}

Is there a way to do it faster?
its really laggy.

Thx for attention.

Re: duplicating a complete layer
From:  verT!c4L
Date:  5. March 2008, 15:00

got it.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke Input 09.03.09