Photoshop scripting: error when the text color is black (0,0,0).

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
  • (Edited)
Steps to reproduce:
1. Create a photoshop file with a text layer
2. Set the text to black (0,0,0)
2. Create a script to access the text layer like so: layer.textItem.color

Results:
Error 8800: General Photoshop error occurred

Expected Results:
The property returns a SolidColor object with RBG set to (0,0,0)

NOTE: This only occurs if the text is completely black. If it's any other color, it works as desired.
Photo of Brian Dean Jennings

Brian Dean Jennings

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14100 Posts
  • 1749 Reply Likes
Official Response