In this video, we will go over the hex triplet color format and how you can convert it with a Python script to an RGB color Blender can understand.
Final Code:
https://gist.github.com/CGArtPython/e559d27bb275839f49e355b803b528d3
Adobe color wheel:
https://color.adobe.com/create/color-contrast-analyzer
Hex triplet color format:
https://en.wikipedia.org/wiki/Web_colors#Hex_triplet
Converting from sRGB to linear RGB:
https://en.wikipedia.org/wiki/SRGB#From_sRGB_to_CIE_XYZ
Building Blocks Python package add-on:
https://github.com/CGArtPython/bpy_building_blocks_addon/releases
How to install the bpy Building Blocks Python package
Random Hex Color Code Generator:
https://www.random.org/colors/hex
00:00 – Intro
00:37 – Go over the Hex triplet color format
03:27 – Extracting the Red color component
08:26 – Extracting the Green and Blue color components
10:51 – Example code
12:05 – Create a function
14:00 – sRGB to Linear RGB
19:33 – Using the Building Blocks Python package
23:40 – Outro
Intro Music
Fiery Trails – Silent Partner
Outro Music
Geographer – Easy Shake
#blender #python #scripting