Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

2.x/feature/ae workfile template #275

Merged
merged 3 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion avalon/aftereffects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ ZXPSignCmd -sign {path to avalon-core}\avalon\aftereffects\extension {path to av

These plugins were made with the [polly config](https://github.com/mindbender-studio/config). To fully integrate and load, you will have to use this config and add `image` to the [integration plugin](https://github.com/mindbender-studio/config/blob/master/polly/plugins/publish/integrate_asset.py).

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

For easier debugging of Javascript:
https://community.adobe.com/t5/download-install/adobe-extension-debuger-problem/td-p/10911704?page=1
Add --enable-blink-features=ShadowDOMV0,CustomElementsV0 when starting Chrome
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
Expand Down
Binary file modified avalon/aftereffects/extension.zxp
Binary file not shown.
4 changes: 2 additions & 2 deletions avalon/aftereffects/extension/CSXS/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ExtensionManifest Version="8.0" ExtensionBundleId="com.pype.AE.panel" ExtensionBundleVersion="1.0.10"
<ExtensionManifest Version="8.0" ExtensionBundleId="com.pype.AE.panel" ExtensionBundleVersion="1.0.12"
ExtensionBundleName="pype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ExtensionList>
<Extension Id="com.pype.AE.panel" Version="1.0" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<Locale Code="All" />
</LocaleList>
<RequiredRuntimeList>
<RequiredRuntime Name="CSXS" Version="8.0" />
<RequiredRuntime Name="CSXS" Version="9.0" />
</RequiredRuntimeList>
</ExecutionEnvironment>
<DispatchInfoList>
Expand Down
10 changes: 10 additions & 0 deletions avalon/aftereffects/extension/jsx/hostscript.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ indent: 4, maxerr: 50 */

app.preferences.savePrefAsBool("General Section", "Show Welcome Screen", false) ;

if(!Array.prototype.indexOf) {
Array.prototype.indexOf = function ( item ) {
var index = 0, length = this.length;
for ( ; index < length; index++ ) {
if ( this[index] === item )
return index;
}
return -1;
};
}

function sayHello(){
alert("hello from ExtendScript");
Expand Down
9 changes: 7 additions & 2 deletions avalon/aftereffects/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,22 @@ def safe_excepthook(*args):
traceback.print_exception(*args)


def launch(application):
def launch(application, workfile=None):
"""Starts the websocket server that will be hosted
in the Photoshop extension.
"""
from avalon import api, aftereffects

# check if workfile available and add it to executable
args = [application]
if workfile:
args.append(workfile)

api.install(aftereffects)
sys.excepthook = safe_excepthook

# Launch aftereffects and the websocket server.
process = subprocess.Popen(application, stdout=subprocess.PIPE)
process = subprocess.Popen(args, stdout=subprocess.PIPE)

websocket_server = WebSocketServer()
websocket_server.websocket_thread.start()
Expand Down