ayon-core/openpype/hosts/aftereffects/api
Petr Kalis 136af34a71
AfterEffects: set frame range and resolution (#4983)
* OP-5660 - adding menu buttons to Set frame range in AE

* OP-5660 - refactored location of scripts

set_settings should be in lib as it is used elsewhere, but launch_logic and lib created circular dependency.
Moved main to launch logic as it is actually handling launching.

* OP-5660 - added set_settings to creator

When instance gets created, set frame range and resolution from DB.

* OP-5660 - minor fix

* OP-5660 - updated extension zip

* OP-5660 - updated documentation

* OP-5660 - fixed missing exception

* OP-5660 - fixed argument

* OP-5560 - fix imports

* OP-5660 - updated extension

* OP-5660 - add js alert message for buttons

* OP-5660 - repacked extension

Without Anastasyi showed success, but extension wasn't loaded.

* OP-5660 - make log message nicer

* OP-5660 - added log if workfile not saved

* OP-5660 - provide defaults to limit None exception

* OP-5660 - updated error message
2023-05-22 10:45:20 +02:00
..
extension AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
__init__.py AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
extension.zxp AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
launch_logic.py AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
lib.py AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
panel.PNG moved implementation from avalon to openpype 2022-01-16 16:13:10 +01:00
panel_failure.PNG moved implementation from avalon to openpype 2022-01-16 16:13:10 +01:00
pipeline.py AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00
plugin.py use moved functions in hosts and tools 2022-03-14 11:36:17 +01:00
README.md Small rename in readme 2022-01-17 11:24:37 +01:00
ws_stub.py AfterEffects: set frame range and resolution (#4983) 2023-05-22 10:45:20 +02:00

AfterEffects Integration

Requirements: This extension requires use of Javascript engine, which is available since CC 16.0. Please check your File>Project Settings>Expressions>Expressions Engine

Setup

The After Effects integration requires two components to work; extension and server.

Extension

To install the extension download Extension Manager Command Line tool (ExManCmd).

ExManCmd /install {path to avalon-core}\avalon\photoshop\extension.zxp

OR download Anastasiys Extension Manager

Server

The easiest way to get the server and After Effects launch is with:

python -c ^"import avalon.photoshop;avalon.aftereffects.launch(""c:\Program Files\Adobe\Adobe After Effects 2020\Support Files\AfterFX.exe"")^"

avalon.aftereffects.launch launches the application and server, and also closes the server when After Effects exists.

Usage

The After Effects extension can be found under Window > Extensions > OpenPype. Once launched you should be presented with a panel like this:

Avalon Panel

Developing

Extension

When developing the extension you can load it unsigned.

When signing the extension you can use this guide.

ZXPSignCmd -selfSignedCert NA NA Avalon Avalon-After-Effects avalon extension.p12
ZXPSignCmd -sign {path to avalon-core}\avalon\aftereffects\extension {path to avalon-core}\avalon\aftereffects\extension.zxp extension.p12 avalon

Plugin Examples

These plugins were made with the polly config. To fully integrate and load, you will have to use this config and add image to the integration plugin.

Expected deployed extension location on default Windows: c:\Program Files (x86)\Common Files\Adobe\CEP\extensions\com.openpype.AE.panel

For easier debugging of Javascript: https://community.adobe.com/t5/download-install/adobe-extension-debuger-problem/td-p/10911704?page=1 Add (optional) --enable-blink-features=ShadowDOMV0,CustomElementsV0 when starting Chrome then localhost:8092

Or use Visual Studio Code https://medium.com/adobetech/extendscript-debugger-for-visual-studio-code-public-release-a2ff6161fa01

Resources