Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photoshop-object-model-session-0.0.2.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page