1 Reply Latest reply on Oct 18, 2013 12:43 AM by Jump_Over

    set scale of content of all selected frames to 100%

    steffenunger Level 1

      is it possible to select, for example, 4 graphic frames on a page and set the scale of their content to 100% in one move?

       

      right now i am selecting the content inside of each frame, setting 100%, then moving on to the next

       

      thank you!

        • 1. Re: set scale of content of all selected frames to 100%
          Jump_Over Level 5

          Hi,

           

          No need to select objects if modifying their properties.

          Do you mean 'one move' as 'one script run'?

          You are able to execute some code on object's collection ('one run') or iterating through them using a loop ('many runs').

           

          Example for collection (set 100% scale for every rectangles content on pages 2-6):

           

          app.activeDocument.pages.itemByRange(1,5).rectangles.everyItem().graphics.everyItem().horizontalScale = 100;
          app.activeDocument.pages.itemByRange(1,5).rectangles.everyItem().graphics.everyItem().verticalScale = 100;
          

           

          Jarek