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

Scripting the Color Sampler Tool

New Here ,
Jan 31, 2018 Jan 31, 2018

Hi everyone,

I'd like to write a script to change the readout of the Color Sampler Tool for all samplers to LAB 32 Bit. Does anybody know how to do this?

Thanks in advance

TOPICS
Actions and scripting
3.7K
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
Adobe
LEGEND ,
Jan 31, 2018 Jan 31, 2018

Probably you can't do anything as Photoshop LAB doesn't support 32 bit depth, but 8 and 16 only. If you check information for 32 the result will be same like for 16 bit (whatever image is set to 8 or 16). You may of course multiply 16 bit depth result by 256 to get 24 bit depth and then multiply that by another 256 value but that has no sense as 32 bit depth is reserved for gradients, alpha channles etc which Ps can't combine with your layers to extract proper colour values for 32 bit depth LAB.

I have 0 knowledge on this subject. That Im saying are my quick thoughts preceded with tests I just did and glance at article:

https://www.computerhope.com/issues/ch001557.htm

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
New Here ,
Feb 01, 2018 Feb 01, 2018

Kukurykus​ The LAB Readout changes very much, at least if you look at a picture in RGB in 8 Bit Readout you habe L form 0 - 100 and ab as -127 to 127 in Integers (as is Standard for LAB), in 16 Bit Readout you get totally useless integervalues in 16 Bit, but in 32 Bit you get Floating Point values in a much more usable format.

r-bin​Then i would have to reposition the Samples since they are in the right Position in RGB one and not in the sample. Kind of a big workaround but i will look into it.

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
People's Champ ,
Feb 01, 2018 Feb 01, 2018

The only way that comes to mind is to open a template file with the correct ColoSamples, change its canvas and resolution as in the current document and copy all the layers from the current file to the template, close the file and save the template instead of the file.

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 01, 2018 Feb 01, 2018
LATEST

Perhaps something new for me. Is that template file (LAB32?) created by Photoshop you advice to open, or in other app.?

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