lohriialo / photoshop-scripting-python

Scripting in Photoshop is used to automate a wide variety of repetitive task or as complex as an entire new feature
485 stars 95 forks source link

Whats the COM Object name, for Adobe After Effects Application ? #1

Closed samholt closed 6 years ago

samholt commented 6 years ago

I'm working on a fork of your excellent library for Adobe After Effects full time.

Would you be so kind as to help me connect to the App object of Adobe After Effects ?

Based on your code, you connected to the Photoshop app object via:

from win32com.client import Dispatch

app = Dispatch("Photoshop.Application")

What would the equivalent Dispatch() be for Adobe After Effects ?

Thank you so much for your time,

Will happily pay for time spent on this,

All the best, Sam

lohriialo commented 6 years ago

AfterEffects and Premier Pro doesn't have COM support so scripting in python via COM is not possible like it's illustrated in Photoshop & InDesign

AE's API is in ExtendScript. The best platform from which to select and trigger ExtendScripts (even those driven by Python scripts) is through a CEP (Common Extensibility Platform) panel.

Here's the 'flagship' panel, that shows what's possible at the JavaScript level: https://github.com/Adobe-CEP/CEP-Resources/tree/master/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0

Here's the After Effets panel, basically an empty husk from which to trigger ExtendScript: https://github.com/Adobe-CEP/Samples/tree/master/AfterEffectsPanel

Crowd-sourced scripting API docs for AE: http://docs.aenhancers.com