Unique preset zoom percentage in one click

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, Feature request, How to, Mac, Problem or error

Views

83

Likes

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

Unique preset zoom percentage in one click

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, Feature request, How to, Mac, Problem or error

Views

84

Likes

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

Re: Unique preset zoom percentage in one click

Adobe Community Professional , Feb 13, 2020

What  are the desired % value/s?

Likes

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
Reply
Loading...

Re: Unique preset zoom percentage in one click

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.

Likes

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
Reply
Loading...

Re: Unique preset zoom percentage in one click

Adobe Community Professional , Feb 14, 2020

"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.

Likes

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
Reply
Loading...

Re: Unique preset zoom percentage in one click

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. 

Likes

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
Reply
Loading...

https://community.adobe.com/t5/Photoshop/Image-View/m-p/1...

Adobe Community Professional , Feb 14, 2020
 
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 );
}

Likes

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
Reply
Loading...

Re: Unique preset zoom percentage in one click

r-bin LATEST
Adobe Community Professional , Feb 14, 2020

Likes

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
Reply
Loading...