Photoshop Object Model Session
Project description
This package is designed to interact with Photoshop using its Component Object Model using python. the class PhotoshopSession be used as a context, who handles errors while providing autocompletion, access to docstrings, and accurate type hints in your preferred IDE.
Usage : '''python from photoshop_object_model_session import PhotoshopSession
with PhotoshopSession() as ps: print(ps.Application.Version) new_layer = ps.Application.ActiveDocument.ArtLayers.Add() new_layer.Name = "Hello World" '''
All classes have been written based on Photoshop's VBS documentation, which can be found at https://github.com/Adobe-CEP/CEP-Resources/blob/master/Documentation/Product%20specific%20Documentation/Photoshop%20Scripting/photoshop-vbs-ref-2020.pdf. As such, the code you'll find here isn't very pythonic, because it is based on the Visual Basic syntax. Please note that this package may contain inconsistencies, missing return types, and typos. Unfortunately, most of these issues stem from faithfully transcribing Adobes's flawed documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for photoshop-object-model-session-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e8b62ecdf67110bd82767227ac3dbfa3b2fa28b1ce54110597d3ce9bde7168 |
|
MD5 | cb43045579e5ec9bfb1d8915ccb4a158 |
|
BLAKE2b-256 | dd9ce336f1032a5335914bd72f7e7c3028df2e19dab2c60c28fdcd21545da368 |
Hashes for photoshop_object_model_session-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f50769a722406001f2e9c36e6a56a31abd9689f8511650363a5891d5d2a14b |
|
MD5 | 7c700378636efb1db02f900560a5cbe2 |
|
BLAKE2b-256 | 8da10a138a772e796b2ffe2eaee53d66538a9f3fc20bee408b19be9c95b7122c |