Photoshop Connection
Photoshop Connection is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with Photoshop Connection. More Information
A python TCP socket connection to Photoshop CS5.5. This is a simple wrapper class to facilitate sending arbitrary JavaScript to Photoshop and receiving the result of the script. The Connection objet also has a thumbnail method to write the a JPEG to a file-like object of the current doc open in Photoshop.
There is a EventListener class to subscribe to events in Photoshop.
Example
from pyps import Connection, EventListener
conn = Connection()
conn.connect(passwd='Swordfish')
conn.send('alert("Hello");', True)
print conn.send('$.version;', True)
def callback(message, *args):
print message.command
print message.content
def callback2(message, *args):
print message.command
print message.content
print args
listener = EventListener(conn)
listener.start()
listener.subscribe('foregroundColorChanged', callback)
listener.subscribe('toolChanged', callback2, (True, 'xxx'))
listener.subscribe('currentDocumentChanged', callback)
## -- We need to keep the EventListener alive
while True:
time.sleep(1.0)
Metadata
Release files for pyps 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyps-0.6.0.tar.gz | 14.5 kB | Details |
Release files / pyps-0.6.0.tar.gz
| Download URL | pyps-0.6.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96b1df2cf50ba1a189afdb8b687cc4b37e3bdca479898154cf0abfbf8c9d3515
|
|
BLAKE2b-256 checksum How to use checksums |
9c69c54b5c3c53fe91f685dae0674f17f9446dd935675367dddef0fbe094c6e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|