Skip to content

Photoshop API with python multithreading #313

@djs45

Description

@djs45

Hello.

I need to use Photoshop API in a threading or multiprocessing function in python but i seems to be impossible.
Can you help me ? Many thanks

I write a sample example :

##############################

import photoshop.api as ps

def testPS():
try:
app = ps.Application()
app.load("test.psd")
except Exception as e:
print (e)

import time
import multiprocessing
p = multiprocessing.Process(target=testPS)
p.start()
p.join()

print ("***")

from threading import Thread
t1 = Thread(target=testPS)
t1.start()
t1.join()

print ("***")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions