ZBrushCentral

RGB and HSV Sliders (ZB3.5r2)

A set of sliders to adjust RGB and HSV. I tacked them to the bottom of the Color menu. Look for “RGB HSV Sliders”.

Hopefully the sliders are self-explanatory.

Couple of quirks to keep in mind:


  • Hit the “Update RGB” button when you first open the slider submenu.
  • Hit the “Update RGB” button when you change the active color with anything other than the sliders in the submenu.
To load the plugin every time you launch ZB:


  1. Unzip the download.
  2. Place “rgbhsv_sliders.zsc” in the “ZStartup\ZPlugs” folder.
To load the plugin in your current session:


  1. Unzip the download.
  2. Load “rgbhsv_sliders.zsc” from the “ZScript:Load” button.
And, yes, I know there are existing RGB sliders and a plethora of swatch based selectors in the “Color:Modifiers” submenu. I just wanted something simple.

I’ve included the source code so you can make your own edit.

-Todd

Attachments

rgbhsv_sliders.zip (4.95 KB)

Good.
Thank you.
.

great! HSV sliders!!

This is great, thanks!

I did a bit of hacking in the script and changed the slider width so I could embed them nicely in the left side of the workspace under the color picker.

alannoon - What a great idea. Don’t know why I didn’t think of that in the first place.

:smiley:
Just and FYI: I made the sliders 80 units wide, and they fit in that little shelf area nicely.

BUT… doing so makes the layout in color palette pretty ugly. I don’t know zscript well enough to organize it.

There are two ways of specifying the button or slider size in zscript: values above 1 will be pixel dimensions; fractional values up to 1 are proportional to full palette width. So to fit the sliders neatly on the left shelf, whatever the button size is set to, you’d use a width value of .5.

HTH,

alannoon and marcus_civis - Thanks for the idea and pointers.

Based on alannoon and marcus_civis’s suggestions, I’ve made a new script with a button and sliders to be half of a palette’s width. This is the ideal size to fit into the small left hand palette ( thanks again ). I’ve also relocated the buttons to the “Zplugin” menu.

To get the sliders in the left hand menu:


  1. Turn on the custom UI: Preferences -> Custom UI -> Enable Customize
  2. Press and hold control, drag and drop the button and sliders ( one by one ) to the correct location.
  3. Turn off custom UI.
  4. Save the UI: Preferences -> Config -> Save Ui
There may be a better method to get the sliders in the left hand menu, but I am unsure of how to place them in that location via zscript. Also, since they are designed to be half size and to be placed in the left hand menu, the layout in the Zplugin menu is ugly ( as alannoon noted ).

Attachments

rgbhsv_sliders_half.zip (4.97 KB)