Convert RGB value to Hex

This is a simple script that does one function: converts RGB decimal values to hex. As initially created, it will only do one value at a time. While it would be nice to allow this to remain open while you work with Scribus, this initial version will have to be closed to carry out any Scribus operations.

Usage

Start the script – there are no requirements other than running it from Scribus. One could certainly alter this to run outside of Scribus by eliminating the valueDialog and messageBox features.

Enter an RGB decimal value in the initial dialog. If you enter nothing, the value '255' is the default. Values greater than 255 default to 255, less than 0 to 0.