adobe-photoshop / generator-panels

CEP-based panels supporting generator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generator-panels

This repo contains the source for two extension panels for Photoshop, Generator Configuration and Generator Layer Names. Both of these panels are implemented using the new CEP5 Extension Framework, and require Photoshop CC 2015 to run.

The Generator Configuration panel lets you easily change the configuration options for the Generator Assets plugin that ships with Photoshop.

The Generator Layer Names panel lets you easily change the suffix, scale, size and folder parameters of the selected layers in Photoshop. This is an easy way to update existing Photoshop design files to take advantage of Generator to export assets.

NOTE The CEP extension framework these panels run under is no longer supported on M1 Macs or Window ARM versions of Photoshop. In order to access these plugins, you will need to run the x86 version of Photoshop (e.g., via Rosetta on the Mac).

Installation

The release version of the Generator Configuration panel is available directly for free from the Adobe Add-ons site. The Generator Layer Names panel is also now available from the Add-ons site as well.

Full source code is provided for both panels. At the top level, a Python script, installPanels.py provides tools for installing, testing and packaging the panels. Windows users will need to install Python 3. Packaging the panels into signed .zip files requires installing the ZXPSignCmd command-line tool. This is found on the Extension Builder Toolkit download page, near the bottom under the "Download CC Extensions for Signing" links.

The simplest way to start using the panels from the source code is to run:

installPanels.py
installPanels.py -d on

to run the panels in debug mode. Turning on debug mode allows unsigned panels to run. After you re-launch Photoshop, the panels should appear in the Windows > Extensions menu.

Note about this implementation

These panels were implemented with CEP, which is now deprecated for extending Adobe Creative Cloud applications. This framework no longer operates on M1 or ARM versions of Photoshop. If you're interested in creating extensions for Adobe CC products, please look at the documentation for UXP. This is the recommended extension framework for Photoshop v22 and beyond.

Third-Party Code

License

(MIT License)

Copyright (c) 2013-2022 Adobe Systems Incorporated. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

CEP-based panels supporting generator.

License:MIT License


Languages

Language:CSS 54.4%Language:JavaScript 34.0%Language:Python 7.4%Language:HTML 4.0%Language:Batchfile 0.2%