ZBrushCentral

Question: clipboard and hexadecimal

hi, I would like to make small button to
“The clipboard html color code put to the Zbrush active color”

is there function to read clipboard?
and how do I change hexadecimal string to integer for iColorSet?

You can’t use zscript to do that directly. It would be possible but you’d need a DLL to get the value from the clipboard, so you’d need to do some C++ coding.

The ZColor plugin included with ZBrush has hexadecimal. You can paste a value from the clipboard and if Direct Mode is on the color is immediately set in ZBrush. See here:
http://docs.pixologic.com/user-guide/zbrush-plugins/zcolor/

1 Like

thank you for answering. :slight_smile:
Direct mode in ZColor is fit for me!