Changing colors in the Inspector to something I like
Copy/paste the Hex values from Inspector to Blender
Re-export the scene as a .babylon file.
Surprisingly the colors come out with completely different values when I look at them again in the inspector.
What I originally chose in the Inspector:
Diffuse - 38388B
Emissive - 677CB4
After typing these into the ‘Principled BSDF’ shader as Base Color and Emission, this is what got exported in the .babylon file: "diffuse":[0.1215,0.3259,0.8]
Note that there is was no emissive color exported
What showed up in the Inspector next time around:
Diffuse: 0A0A41
Emissive: 000000
This is probably because you use pbr material and you would input colors in gamma space on some channels so it is not the color used by the material. You should use the scene recorder feature in the inspector: Applying Delta Changes To A Scene | Babylon.js Documentation
No problem, I just set the emissive color in my Javascript after loading the model - which works great.
Thanks for writing the exporter, I think this is the best workflow available with Blender/Babylon.