Skip to main content
peter.nicolai.sf
Participant
February 14, 2020
Question

Best method for calling Python from JavaScript in PS?

  • February 14, 2020
  • 1 reply
  • 1091 views

Hi all,

 

I'm looking to call an external Python script from my Javascript running inside PS. My js will pass python some sysvars and will need some data back.

 

Some intial examples invovled using the child_process() method from node.js worked in isolation, but not within PS. I'm starting to try out direct ajax calls based on this stackoverflow thread. Can anyone confirm if this is the correct/current best path forard?

https://stackoverflow.com/questions/13175510/call-python-function-from-javascript-code

 

thanks in advance, 

pete

This topic has been closed for replies.

1 reply

Hal.long
Participant
May 29, 2020

Hey,

Maybe this is what you are looking for:

 

https://github.com/loonghao/photoshop-python-api

Cheers,

Hal