Scripts
To the top
Loading and running scripts
Scripts included with After Effects
Writing and modifying scripts
Where to find additional useful scripts
A script is a series of commands that tells an application to perform a series of operations. You can use scripts in most Adobe applications to
automate repetitive tasks, perform complex calculations, and even use some functionality not directly exposed through the graphical user interface.
For example, you can direct After Effects to reorder the layers in a composition, find and replace source text in text layers, or send an e-mail
message when rendering is complete.
After Effects scripts use the Adobe ExtendScript language, which is an extended form of JavaScript, similar to Adobe ActionScript. ExtendScript
files have the .jsx or jsxbin filename extension.
For a description of the scripting capabilities available with After Effects, see the After Effects Scripting Guide on the
After Effects Developer
Center
section of the Adobe website. For a detailed list of changes in After Effects scripting from After Effects CS3 to After Effects CS5.5 and later,
see the
Adobe website
.
For scripting changes, and a new scripting guide for After Effects CS6,
see this post
on the After Effects Region of Interest blog.
Loading and running scripts
When After Effects starts, it loads scripts from the Scripts folder. By default, the Scripts folder is in the following location for After Effects CS5:
(Windows) Program Files\Adobe\Adobe After Effects CS5\Support Files
(Mac OS) Applications/Adobe After Effects CS5
Note: The path for After Effects CS5.5 and later differs in the version number portion of the path.
Several scripts come with After Effects and are automatically installed in the Scripts folder.
Loaded scripts are available from the File > Scripts menu. If you edit a script while After Effects is running, you must save your changes for the
changes to be applied. If you place a script in the Scripts folder while After Effects is running, you must restart After Effects for the script to appear
in the Scripts menu, though you can immediately run the new script using the Run Script File command.
Scripts in the ScriptUI Panels folder are available from the bottom of the Window menu. If a script has been written to provide a user interface in a
dockable panel, the script should be put in the ScriptUI folder. ScriptUI panels work much the same as the default panels in the After Effects user
interface.
Note: The default is for scripts to not be allowed to write files or send or receive communication over a network. To allow scripts to write files and
communicate over a network, choose Edit > Preferences > General (Windows) or After Effects > Preferences > General (Mac OS), and select the
Allow Scripts To Write Files And Access Network option.
To run a loaded script, choose File > Scripts > [script name].
To run a script that has not been loaded, choose File > Scripts > Run Script File, locate and select a script, and click Open.
To stop a running script, press Esc.
To run a script from the command line, call afterfx.exe from the command line. Use the -r switch and the full path of the script to run as
arguments. This command does not open a new instance of the After Effects application; it runs the script in the existing instance.
Example (for Windows):
afterfx -r c:\script_path\example_script.jsx
You can use this command-line technique—together with the software that comes with a customizable keyboard—to bind the invocation of
a script to a keyboard shortcut.
Jeff Almasol provides a set of scripts that includes the Launch Pad script, which creates a docking panel from which you can run any other scripts
that you have installed. The same package of Jeff’s scripts includes KeyEd Up, a script with which you can modify keyboard shortcuts. For
information, see the
Adobe After Effects Exchange
on the Adobe website.
Sebastien Perier provides instructions on
his website
for assigning keyboard shortcuts to scripts so that you can run a script with a single
keystroke. This technique relies on the KeyEd Up script.
Jeff Almasol provides a script that creates a simple console panel. The console panel includes a text area in which you can enter ExtendScript
commands to be evaluated. There is no capturing of errors or messages; this console is only a simple way of entering commands without having
Содержание 12040118 - After Effects Standard
Страница 1: ...ADOBE AFTER EFFECTS Help and tutorials...
Страница 2: ...What s New...
Страница 21: ......
Страница 23: ...Legal Notices Online Privacy Policy...
Страница 27: ...Workspace and workflow...
Страница 29: ...Legal Notices Online Privacy Policy...
Страница 36: ......
Страница 42: ...Importing from Adobe After Effects Legal Notices Online Privacy Policy...
Страница 76: ...Projects and compositions...
Страница 92: ...Importing footage...
Страница 97: ...Legal Notices Online Privacy Policy...
Страница 102: ......
Страница 128: ...Layers and properties...
Страница 140: ......
Страница 171: ...Views and previews...
Страница 185: ...Animation and Keyframes...
Страница 206: ...Legal Notices Online Privacy Policy...
Страница 241: ...Color...
Страница 257: ...Legal Notices Online Privacy Policy...
Страница 258: ...Drawing painting and paths...
Страница 293: ...Text...
Страница 314: ......
Страница 325: ...Transparency and compositing...
Страница 336: ...Legal Notices Online Privacy Policy...
Страница 345: ...Effects and animation presets...
Страница 380: ...Legal Notices Online Privacy Policy...
Страница 496: ...Effect applied with threshold settings of 44 left 70 center and 200 right Legal Notices Online Privacy Policy...
Страница 509: ...Original upper left and with effect applied lower left and right More Help topics Legal Notices Online Privacy Policy...
Страница 513: ...Legal Notices Online Privacy Policy...
Страница 514: ...Markers...
Страница 518: ......
Страница 524: ...Memory storage performance...
Страница 544: ...Expressions and automation...
Страница 560: ...Legal Notices Online Privacy Policy...
Страница 582: ...Rendering and Exporting...
Страница 601: ...Legal Notices Online Privacy Policy...
Страница 603: ......