Answered
Creating zoom shortcut
How can I create a action or a key which can zoom out the document to a specific percentage (say 20%) whenever I press them?
How can I create a action or a key which can zoom out the document to a specific percentage (say 20%) whenever I press them?
In case you want to set an absolute zoom level, you can use this javascript snippet to always go to 20 %:
// Absolute Zoom level: 20 %
if (app.activeDocument) {
app.activeDocument.views[0].zoom = 0.2;
}
You can incorporate it into an action and assign a keyboard shortcut to the action.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.