Skip to content

Latest commit

 

History

History
138 lines (83 loc) · 6.26 KB

README.md

File metadata and controls

138 lines (83 loc) · 6.26 KB

Blending PSD colors - toolset

🔎🔎🔎

Read all colors in folder COLORS and save them into CSV file. It also has several others utility tools
Important! Tested and created for Photshop CS6 64bit Version: 13.0 on Windows 10

How the program works

Write colors from layers to CSV file Set colors from CSV file Transform BASE layers into pngs
Write colors from layers to CSV file Set colors from CSV file Transform BASE layers into pngs
Set left upper pixel in COLORS Create folders templates COLORS Enumerate folders in COLORS
Create folders templates Set left upper pixel in COLORS Enumerate folders in COLORS folder

Getting Started 💡

The tool is created for reading blending "colors layers" hex values above "base layers"
All read values are written into a CSV file in the same directory as opened PSD file and with the same name To do that just click Write colors from layers to CSV file in the menu

There are other utility tools as well, like: Set colors from CSV file, Transform BASE layers into pngs, Create folders templates, Set left upper pixel in COLORS

List of errors during usage is written in a file in chosen CSV directory with CSV's name + prefix _errors.csv

If you want to customize the tool towards your needs look at config.ini in the script directory

Toolset consist of:

  • Write colors from layers to CSV file (Read all colors in folder COLORS. Save them into CSV file)

  • Set colors from CSV file (Set colors from chosen CSV file into COLORS folder's layers)

  • Transform BASE layers into pngs (Print screen all layers in folder BASE and save them into pngs)

  • Create folders templates (Create a template in opened PSD for the tool)

  • Set left upper pixel in COLORS (Give each COLORS's layer a pixel which is needed to be able to read color value)

  • Enumerate folders in COLORS (Enumerate all folders in COLORS folder in reverse order)

  • About (mainly usage and author's info)

AppData are in: ~/.../Blending PSD colors - toolset/:

  • config.ini
    • FILE STRUCTURE (How the PSD has to be constructed)
      • color_folder_name = COLORS (Name of folder from which color hex values will be gathered)
      • folders_in_it = 1 (Names of folders, created in COLORS folder)
      • layers_in_it = R,G,B (Names of each layer in folder in COLORS folder)
      • base_folder_name = BASE (Name of folder from which will be layers saved to pngs)
    • COLORS RGB (colors which will be set to layers in template)
      • R_color = FF0000
      • G_color = 00FF00
      • B_color = 0000FF
    • COLOR PICKER COORDS PIXEL FILL (Color picker coordinates needed in Set left upper pixel in COLORS)
      • R_coord = 180,175
      • G_coord = 140,274
      • B_coord = 178,249

Prerequisites 💪

To run this script, you need at least Photoshop CS6 64bit Version: 13.0 other versions of PS are not tested

Installing 🔨

  1. Download "Blending PSD colors - toolset"

  2. Unzip file in a preferred directory (suggested place is: _...\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts)

  3. Open "Photoshop"

  4. Push keys: Alt+F9

  5. Chose "Action" tabbed panel in the left upper corner

  6. (If it is not yet) Disable "Button mode" by clicking an icon in the right upper corner

  7. "Create new action" (right bottom corner of Action window)

  8. Name script (e. g. UI toolset), optionally assign a key to it (e. g. F12) or add color (e. g. "Green")

  9. Click "ok"

  10. Choose in upper main menu: "File -> Scripts -> Browse..."

  11. Navigate to the unzipped folder directory

  12. Open "blending_PSD_colors_toolset.jsx"

  13. Click "Close" button in UI toolset

  14. Click "Stop\playing recording" (small grey square in the left bottom corner)

  15. Enable "Button mode" (right upper corner)

  16. Now your script is ready to use (Click button with your newly created action)

  17. Enjoy!

Running the tests 🧪

For now, only manual testing is available. Use Adobe Phtoshop CS6 SDK Win to find bugs during running script

Built With 🧰

Needed documentation 📦

Contributing 📬

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us

Authors 🎈

  • Karol Łukaszczyk - Initial work - Lukkar

License 📜

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments 👍

  • README-template.md, CONTRIBUTING-template.md by PurpleBooth