Reply To: Script to move images to seperate layer

#111829
Aaron Troia
Participant

Bill,

I think I had this question a few years back and someone answered and gave me a script that I feel I should pass on.


//Get a collection of graphics in the doc
var imgs = app.activeDocument.allGraphics;

//Loop through the graphics in the collection
for(i=0; i<imgs.length;i++) {     
	//use function move(to) to place graphics in layer named myLayer
	imgs[i].parent.move(app.activeDocument.layers.item('Images'));
}

//Set myLayer layer options to be not visible and not printable
app.activeDocument.layers.item('images').visible=true; 
app.activeDocument.layers.item('images').printable=true;

Aaron

This article was last modified on November 26, 2018

Comments (0)

Loading comments...