A script for Adobe After Effects that can smoothly change zoom in your Composition View.
diamond.webm
map.webm
After Effects Composition View has only fixed zoom levels: 25%, 33.3%, 50%, 100%, etc., and there is no buttons or shortcuts to change zoom to any other values. This script creates a simple interface that can change zoom level to any value through Extendscript.
If you just want to know how to set custom zoom level through Extendscript then here it is. Run this command in Ae to set the zoom level of the active viewer. The value of 1 equals to 100% zoom.
app.activeViewer.views[0].options.zoom = someValue;
Save this command in a text file and replace someValue with any number. In Ae go to "File -> Scripts -> Run Script File..." and select the text file you just saved. This will run the script.
You'll need Node.js installed on your computer. After Node.js is installed, open the repo folder in the Terminal and run:
npm install
npm run build
Or, if you have Yarn installed:
yarn install
yarn run build
The script should be in the ./dist folder.
Open After Effects, go to "File -> Scripts -> Run Script File..." and open the script file. A new Script UI window should pop up.
Open After Effects, go to "File -> Scripts -> Install Script UI Panel..." and open the script file.
Copy the script file to:
Windows: C:\Program Files\Adobe\Adobe After Effects [version]\Support Files\Scripts\ScriptUI Panels
macOS: /Applications/Adobe After Effects [version]/Scripts/ScriptUI Panels
Restart After Effects and you should be able to find the script under the Window menu.
The script UI has many similarities with the After Effects UI.
- Click once on the blue number to enter the value manually.
- Click and drag the blue number to chage the zoom level.
- Hold
shiftwhile dragging to change the value faster. - Hold
ctrl / cmdwhile dragging to change the value slower.
- Drag the slider to change zoom.
- Click on the buttons on the sides of the slider to increment or decrement zoom by 1.
- Hold
shiftand click the buttons to change the zoom by 10. - Hold
ctrl / cmdand click the buttons to change the zoom by 0.1.
Click on the small 3-dots button on the right side of the script window to display the settings menu. Here you can hide/show the slider and change its min and max values.
Add any number of custom key bindings that can change zoom value. This feature allows to use all features of Zoom without any user interface. The default key bindings are: (Ctrl + Scroll Up) to increase zoom and (Ctrl + Scroll Down) to decrease zoom.
Key bindings are only available after installing the Zoom plug-in in After Effects.