14 Replies Latest reply on Aug 18, 2010 10:12 PM by sstanleyau

    applescript - ID - CS3 or CS4 - create array containing front/back order of objects?

    jhuddle123 Level 1

      Hi all,

       

      I'm looking for ideas of how to do this: create a layer for each object in the document, then move each object onto it's own layer — and preserve front/back arrangment. In other words, 10 objects = 10 layers, without changing stacking order.

       

      So far I've got it creating unique layers and moving objects onto each. . .but i'm looking for the most efficient way to have it handle the original stacking order.

       

      I suppose i can start learning how to build an array, then re-order it by index (which i understand indicates front/back), and then create layers following that order? If that's the best way, I'd LOVE some direction on how to code that. Or, if there a more elegant solution?

       

      Thanks for any help!

       

      CS3 is ideal but can use CS4 if necessary (or CS5 if there's some killer function in there)