[FIXED] Photoshop -Automatisierung

Ausgabe

Ich möchte Photoshop-Aktionen über die Visual Basic-Benutzeroberfläche ausführen. Ich meine, wenn der Benutzer auf die Schaltfläche klickt, sollte die Photoshop-Aktion ausgeführt werden.

kann jemand einen Hinweis darauf geben? Danke

Public Class Form1
    Dim appRef
    Dim app
    Dim File
    Dim JavaScriptFile
    Dim nums(2)
    Dim argsArr()
    Dim photoshopApp As Photoshop.Application
    Dim photoshopDoc As Photoshop.Document
    Dim curLayer As Photoshop.ArtLayer
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        appRef = CreateObject("Photoshop.Application")
        app.load(File("C:\Border-2.atn"))
        app.DoAction(ThisQueue.Dequeue)
    End Sub

Lösung

Sie müssen Ihre Aktionen oder Aktionssets zuerst in Photoshop laden! Sie können Aktionen nicht laden oder aufrufen, wie Sie es versucht haben. App.load (File (...bezieht sich auf Bilder laden.

   Private Sub PhotoshopDoAction(ByVal action As String, ByVal actionSet As String)
        Dim PS As Photoshop.Application

        PS = New Photoshop.Application
        If PS.Application.Documents.Count > 0 Then
            PS.DoAction(action, actionSet)

        End If

    End Sub


Beantwortet von –
Goldmond


Antwort geprüft von –
Timothy Miller (FixError Admin)

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

[FIXED] PSD -Dateiformat

Ausgabe Ich versuche, eine Dokumentation des PSD-Dateiformats zu finden, damit ich eine PSD-Datei einlesen und dann die einzelnen…