RGB Color as 0 - 255

Hello! Is there any way to switch color setting mode from 0-1 to 0-255 in 2.61? As I can remember, I’ve seen this option in Blender, but I can’t remember, where it was.
Yes, I know, how to convert values manually, but it’s not comforable for me.
Thank you!

1 Like

if there is, it must be a script or something idk. but maybe you can use the hex value and switch back or so.

Although this is extra keystroke, you should be able to type the ‘value’/255 to get the result you want.

you are right it should and it does :wink:

where do you enter the '/200 for instance and in which mode
like HEX mode ?

happy 2.6

no just in the RGB mode; if you know the bit (0-255) color value of the Red, Green or Blue, you can type this “value”/255 in the box and it will give the 0-1 value

1 Like

still i tried and did not work where do you enter this value EX: '/200

do you set the cursor over the color area and enter it or what ??
can you make a quick short video !

thanks


Look at the Blue option, this is where I typed ‘value’/255

Have a good day

you enter a fraction like for doing the calculation to get a value between 0 and 1 !

but this is not entered as a number between 0 and 255!

thanks

When you input a number between 0 and 255 you were entering a fraction, it’s just that blender converts it for you automatically in to a decimal. If someone gave you a color in the 255 format, you would do what I suggested above.

128 = .5
255 = 1
64 = .25
192 = .75
25.5 = .1

Thanks for this tips ! as designer I prefer 0-255 bit than 0-1…

When you use 0-255 you cannot define a color as precise as with RGB:
R: 0.152334
G 0.234545
B 0.194534

Also with Hex codes you cannot define a color that precise.

This is not good thing, because you can not use with HDR colors.

Basicaly, multiply with 255. Or use HEX codes.

If you make a simple calculation it doesnt work as you say. It’s not the same to use 0-1 color values and multiply it by 255 to get exact representation in 0-255 range.
Blender uses 0 - 1 Linear distribution and Gamma corrected distribution when used with 0-255 (HEX) values. It takes more calculations to change 0-1 to 0-255(and Hex) color values in Blender.

You can normalize integer values from 0-255 very easy.There are many methods,here two examples.

Notice this works only for the range of 0-255. If you want to normalize higher integer values you have to increase the division (1/255 to 1/your new max integer).For the map range method you have to change the from max value then.

Gamma node is only for display the linear values,without you get the sRGB displayed.

The colormanagment is set to Standard and Display to sRGB.This means the values are already linear but since sRGB Display transform is active and you want your linear values as linear displayed you need the gamma node.