• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Unique preset zoom percentage in one click

New Here ,
Feb 13, 2020 Feb 13, 2020

Copy link to clipboard

Copied

I'd like to be able to zoom to a specific percentage with one click rather than having to type the (5 key stroke) percentage into the zoom percentage window.  Is there a way to do this?  Thanks

TOPICS
Actions and scripting

Views

464

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Feb 13, 2020 Feb 13, 2020

Copy link to clipboard

Copied

What  are the desired % value/s?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

In this case, 36.36%. But I am curious in general if the presets can be changed, or if a one-button method for non-canned view percentages is available even if via actions, droplets, etc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

"In this case, 36.36%"

Sounds to me that you may want to fit on screen?

You can use keyboard shortcut for that task or to record action which can be played using keyboard shortcut.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

Thank you Bojan. I did try recording an action of changing the view/zoom size to 36.36% but it did not work. I actually tried it a few times, but it was futile. That said, this is the first time I've tried to create a new action in PS 2020, but I didn't think that changed from the previous versions. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

 
You will need to round to one decimal place, so 36.4%
 
Special thanks to Tom_Winkelmann
 
//community.adobe.com/t5/Photoshop/Image-View/m-p/10650951#M267319
//Image View
// Zoom image to N%

setZoom( 36.4); // Set the zoom %
function setZoom( zoom ) {// as percent
   cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor
   var docRes = activeDocument.resolution;
   activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMethod.NONE );
   var desc = new ActionDescriptor();
   var ref = new ActionReference();
   ref.putEnumerated( cTID( "Mn  " ), cTID( "MnIt" ), cTID( 'PrnS' ) );
   desc.putReference( cTID( "null" ), ref );
   executeAction( cTID( "slct" ), desc, DialogModes.NO );
   activeDocument.resizeImage( undefined, undefined, docRes, ResampleMethod.NONE );
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines