A simple Python script that converts HEX palettes into Godot .tres files.
This allows you to easily import color palettes from sites like Lospec or your design tools directly into Godot.
Once converted, you can import the palette in Godot by opening the Color Picker, clicking the ... button next to Swatches, and selecting Open → choose your .tres file.
⚠️ The generated file has no UID, so it might be a bit glitchy, but it works.
- Place the Python script next to your HEX file.
- Run the script from the terminal:
python hex2tres.py palette_name.hex