Код: Выделить всё
os.makedirs(os.path.dirname(png_path), exist_ok=True)
app = win32com.client.Dispatch("Photoshop.Application.190")
app.Open(psd_path)
doc = app.Application.ActiveDocument
artboard = doc.LayerSets.Item("redacao")
tema_layer = artboard.ArtLayers.Item("Tema")
texto_layer = artboard.ArtLayers.Item("Texto")
tema_layer.TextItem.Contents = tema
texto_layer.TextItem.Contents = text
Подробнее здесь: https://stackoverflow.com/questions/796 ... text-layer