Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Mark as solved if this reply satisfy your expectation What you mean "does't work"? - both my codes do work, don't they?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now