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
Copy link to clipboard
Copied
What are the desired % value/s?
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.
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.
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.
Copy link to clipboard
Copied
//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 );
}
Copy link to clipboard
Copied