4 Replies Latest reply on Sep 10, 2017 3:41 AM by Tom Winkelmann

    Zoom in guide sections

    saikirans54625543

      Hi,

      Is there a script to zoom in from one guide section to other.Currently, I do it manually by selecting grid by grid to zoom in

       

      ezgif-4-2b40ecd2dc.gif

        • 1. Re: Zoom in guide sections
          JJMack Most Valuable Participant

          I see that the scriptlistener records some steps when you do what you you show there. Not the code references the mouse not any x y or selection area and the code does not work is a script it troughs an error.

           

           

          // =======================================================

          var idtoolModalStateChanged = stringIDToTypeID( "toolModalStateChanged" );

              var desc47 = new ActionDescriptor();

              var idLvl = charIDToTypeID( "Lvl " );

              desc47.putInteger( idLvl, 1 );

              var idStte = charIDToTypeID( "Stte" );

              var idStte = charIDToTypeID( "Stte" );

              var identer = stringIDToTypeID( "enter" );

              desc47.putEnumerated( idStte, idStte, identer );

              var idTool = charIDToTypeID( "Tool" );

                  var desc48 = new ActionDescriptor();

                  var idIdnt = charIDToTypeID( "Idnt" );

                  desc48.putString( idIdnt, """zoom""" );

                  var idTtl = charIDToTypeID( "Ttl " );

                  desc48.putString( idTtl, """Zoom Tool""" );

              var idTool = charIDToTypeID( "Tool" );

              desc47.putObject( idTool, idTool, desc48 );

              var idKnd = charIDToTypeID( "Knd " );

              var idKnd = charIDToTypeID( "Knd " );

              var idmouse = stringIDToTypeID( "mouse" );

              desc47.putEnumerated( idKnd, idKnd, idmouse );

              var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" );

              desc47.putBoolean( idkcanDispatchWhileModal, true );

          executeAction( idtoolModalStateChanged, desc47, DialogModes.NO );

           

           

          // =======================================================

          var idtoolModalStateChanged = stringIDToTypeID( "toolModalStateChanged" );

              var desc49 = new ActionDescriptor();

              var idLvl = charIDToTypeID( "Lvl " );

              desc49.putInteger( idLvl, 0 );

              var idStte = charIDToTypeID( "Stte" );

              var idStte = charIDToTypeID( "Stte" );

              var idexit = stringIDToTypeID( "exit" );

              desc49.putEnumerated( idStte, idStte, idexit );

              var idTool = charIDToTypeID( "Tool" );

                  var desc50 = new ActionDescriptor();

                  var idIdnt = charIDToTypeID( "Idnt" );

                  desc50.putString( idIdnt, """zoom""" );

                  var idTtl = charIDToTypeID( "Ttl " );

                  desc50.putString( idTtl, """Zoom Tool""" );

              var idTool = charIDToTypeID( "Tool" );

              desc49.putObject( idTool, idTool, desc50 );

              var idKnd = charIDToTypeID( "Knd " );

              var idKnd = charIDToTypeID( "Knd " );

             var idmouse = stringIDToTypeID( "mouse" );

              desc49.putEnumerated( idKnd, idKnd, idmouse );

              var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" );

              desc49.putBoolean( idkcanDispatchWhileModal, true );

          executeAction( idtoolModalStateChanged, desc49, DialogModes.NO );

          • 2. Re: Zoom in guide sections
            Jarda Bereza Level 4

            Try this:

            1) manual zoom in

            2) hold "H" key

            3) mouse click down

            4) drag mouse

            5) mouse click up

             

            Is this better than regular zooming?

            • 3. Re: Zoom in guide sections
              saikirans54625543 Level 1

              Thank you, I am familiar with this workflow.The reason I like using grid system because when I am working on a super high-resolution image of 10K resolution.I make my grids like 6X6 and go through one by one to fix any issues or artifacts.That way I know I am not missing any thing.

              • 4. Re: Zoom in guide sections
                Tom Winkelmann Level 2

                And if you set the size of your artboard to the size you wanna zoom in (e.g. 400x400px)? Then insert your image, so that you see only a part (400x400px) of your whole image.

                 

                With some simple scripts, you can move the layer with your image (400px) left/right/up/down (can be done with shortcuts).