Skip to main content
thebobwolf
Inspiring
March 3, 2022
Answered

Reverse the layer order of a stack of images?

  • March 3, 2022
  • 3 replies
  • 1272 views

Hello 🙂

When you place all of the pages of a multipage PDF at the same time (holding option as you click the loaded graphics icon) the all appear overlapping one another, which is great, especially with a big 100pg+ doc.

 

However as the first page is placed first, the second is stacked on top of it, and so on, pg 100 will now be at the top of the stack. 

 

Is there a quick way to reverse the order of these in Indesign? 

 

Thanks for your help.

This topic has been closed for replies.
Correct answer Laubender

Hi thebobwolf,

for this special case only, select all frames that were placed one after another and run this ExtendScript (JavaScript) code:

 

var sel = app.selection;
for( var n=0; n<sel.length; n++ ){ sel[n].sendToBack() };

 

Regards,
Uwe Laubender

( ACP )

3 replies

Participant
April 15, 2024

Uwe Thanks very much for this script. Will save me many hours over the long term!

BobLevine
Community Expert
Community Expert
March 3, 2022

I know you got this solved, but I'm curious why you'd stack 100 pages on top of one another. I'm going to assume it's for some kind of interactive document.

thebobwolf
Inspiring
March 3, 2022

Hey Bob,

Yes, you're right, it's to create a MSO for an epub. (actually loads of them!) Re-ordering them first gives me the correct page number when I create the MSO.

BobLevine
Community Expert
Community Expert
March 3, 2022

Kinda what I figured. Without knowing exactly how this going to work, there could be ways to present this without reversing the order. 

LaubenderCommunity ExpertCorrect answer
Community Expert
March 3, 2022

Hi thebobwolf,

for this special case only, select all frames that were placed one after another and run this ExtendScript (JavaScript) code:

 

var sel = app.selection;
for( var n=0; n<sel.length; n++ ){ sel[n].sendToBack() };

 

Regards,
Uwe Laubender

( ACP )

thebobwolf
Inspiring
March 3, 2022

Amazing! Thanks so much Uwe, it works a treat. 🙂