Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Set Foreground Color Using HEX Value?

Enthusiast ,
Feb 19, 2018 Feb 19, 2018

Hi all

How I can set the foreground color in Photoshop using a HEX value?

This doesn't work...

solidColorRef.hex  := 0x64c819

AppRef.ForegroundColor := solidColorRef.hex

TOPICS
Actions and scripting
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 19, 2018 Feb 19, 2018

foregroundColor.rgb.hexValue = '64c819'

Btw I solved other problem you've got, check reply number 14 of this topic: Getting the name of the current brush preset

Translate
Adobe
LEGEND ,
Feb 19, 2018 Feb 19, 2018

foregroundColor.rgb.hexValue = '64c819'

Btw I solved other problem you've got, check reply number 14 of this topic: Getting the name of the current brush preset

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 20, 2018 Feb 20, 2018

excellent, thank you!! The HEX code works now.

"Getting the name of the current brush preset" still doesn't work though, but it's okay as I don't really need it at all. I also seem to remember that Adobe fixed this it CC2018? I'm not sure, but I think so. I still use CC2014 so I can't remember.

Thank you again for the HEX code! It works perfect

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 20, 2018 Feb 20, 2018
LATEST

Mark as solved if this reply satisfy your expectation What you mean "does't work"? - both my codes do work, don't they?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines