Javascript colorsamplers only returns 255 or 0
I using Photoshop CC2015 on a Windows 8.1 PC, Coding in Javascript.
I'm trying to get the color of some pixels. I was working fine but now it is only returning 255 or 0.
My code:
theSampler1 = doc.colorSamplers.add([580, 380]);
$.writeln(theSampler1.color.rgb.red);
$.writeln(theSampler1.color.rgb.green);
$.writeln(theSampler1.color.rgb.blue);
Returns 0,0,0 but should be 79,131,7.
It was working fine, but now it is not. Is there a setting or something I changed and need to change back?
