Python GetActiveObject - 运行 Photoshop 动作
Python GetActiveObject - Run Photoshop Action
有谁知道如何使用 Python 在 Photoshop 中 运行 预定义的动作?
from comtypes.client import GetActiveObject
app = GetActiveObject("Photoshop.Application")
fileName = path
docRef = app.Open(fileName)
app.ExecuteAction("Script_Name") #not sure how to write it
app.ExecuteAction()
是一个不同的野兽 — 它用于执行 ActionManager scrings。你需要的是app.DoAction('action_name', 'set_name')
有谁知道如何使用 Python 在 Photoshop 中 运行 预定义的动作?
from comtypes.client import GetActiveObject
app = GetActiveObject("Photoshop.Application")
fileName = path
docRef = app.Open(fileName)
app.ExecuteAction("Script_Name") #not sure how to write it
app.ExecuteAction()
是一个不同的野兽 — 它用于执行 ActionManager scrings。你需要的是app.DoAction('action_name', 'set_name')