Hi
I would like the create a script which gives me the rbga value of a pixel that I pick in the Image Editor.
I’m looking to do something like when I clic in the Image Editor with the left mouse, it returns me a list with the rbga value of the pixel I pick and launch a function in the script for exemple. Is it possible to do that?
Use spacebar menu over image editor and search for the modal operator, then left-click on a pixel. You might need to add checks in case there’s no image or something like that.
Thank you for the script! I think that is exactly what I need.
I don’t want to code a color picker from scratch but the color picker of Blender clamps the values greater than 1 and smaller than 0. And that’s a problem for the tools I’m working on.
Indeed, I probably make a mistake when I tried to sample the colors greater than 1. Anyway, I also need to sample values smaller than 0 and your script helps me a lot.
Thanks.