Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

graphics moving to layers: problem

$
0
0

Hi Forum,

 

While I'm moving graphics to the another layer.  The desgin (placement of the images) get spoiled. 

 

The backmost of the image is brought forward to frontmost and hiding all the frontmost image.

 

Suppose, if the backmost image is page full width and page full height, when the script is run, it comes front most and hiding all the images.

 

So, how could i maintain the apperences of the images placed sameas, after moved to the "Image Layer" through script.

 

var allDocumentGraphics = app.activeDocument.allGraphics;

for (i = 0; allDocumentGraphics.length > i; i++) {

    if (allDocumentGraphics[i].constructor.name == "Image") {

       

allDocumentGraphics[i].parent.itemLayer = "Images"}}

 

thanks forum.


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>