Adobe After Effects COM对象模型ID?

Cod*_*res 9 python com adobe dom after-effects

试图在Python中获取Adobe After Effects的DOM/COM对象模型,因此我可以操作/编写应用程序的各个部分.这是可能的,在其它Adobe应用程序,如下所示:(https://github.com/lohriialo/photoshop-scripting-python,https://github.com/lohriialo/indesign-scripting-python).

查看COM对象查看器后,我仍然没有找到After Effects COM ID.

因此,理想情况下,能够使用与此类似的代码加载DOM:

import win32com.client
app = win32com.client.Dispatch('XX')
Run Code Online (Sandbox Code Playgroud)

哪个XX会像AfterEffects.Application,

非常感谢大家的帮助,一旦这个令人不安的问题得到解决,我就把这个图书馆放在一起; 可以在这里找到:https://github.com/samholt/after-effects-scripting-python

最好,

山姆

小智 1

After Effects 似乎没有出现在 COM 对象列表中。

您可以通过以下命令获取列表:

Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object {
$_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")
} | Select-Object -ExpandProperty PSChildName
Run Code Online (Sandbox Code Playgroud)

(来源:win32com.client.Dispatch 类标签