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

colorSamplers class shows undefined.

New Here ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Why colorSampler class shows undefined? I am trying to get RGB color values from a specific pixel of the layer. I found many solutions and most of them are using color sampler. For an example, in one of the solutions I found this >>>

var theSampler = app.activeDocument.colorSamplers.add([0.5,0.5]);

But, colorSampler class shows undefined in my case.
>> app.activeDocument.colorSamplers
undefined
>>app.activeDocument.colorSamplers.length;
(index):1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at <anonymous>:1:34

Views

66

Translate

Translate

Report

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
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

LATEST

When you post a question you always need to tell the Adobe program you are using
There are MANY programs in a full subscription, plus other non-subscription programs
Please post the exact name of the Adobe program you use so a Moderator may move this message to that forum

Votes

Translate

Translate

Report

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