ZBrushCentral

Sliced Bread

At least I hope it is better. I have a new Color Widget available with some new features that I am hoping everyone won’t be able to live without. I have the documentation available on my website here
Color Widget Documentation

This widget can control in Real-Time the color section for a tool or a brush. The main controls allow the user to select a color gradient in which color is selected in 3D by XYZ coordinates of the tool that is selected. The real power of the script comes to play when used in conjunction with other widgets such as, the Interpolation, Angle, Stroke, and Stroke Object scripts. Gradient color based upon a combination or all XYZ data will color the object.
In addition a Stroke widget is available that will use the gradient to color a recorded brush stroke. Using this same technology the Color Widget will also allow the artist to sample a texture or the canvas and pick out up to 255 unique colors from the source and apply them via a brush stroke.

You can get the script here: Digit_Widget_Color.txt

Here is a bad example, I hope you guys can do better

Now, I don’t know exactly how many subtle changes per square mm I achieved by using my widget, but I do know that my fingers would be awfully sore and painful if I had to recreate this admittably bad skin problem this alien woman has. I am all for the computer doing these tedious and repetative tasks and with Zscripts the wonders will never cease.

In one of Southern’s tutorials he mentions the subtle changes in color and material that he does in making skin textures for his creations. I am hoping that this will be the start of automating with control these kind of tasks. Materials is next on my agenda to make this script even better. I am hoping that you real artist types out there will find a use for these kinds of scripts and remember to send me a birthday card every year!

Let me know what you think, and if you have any questions let me know

Digits, you’re amazing. What was it? A week ago that you were telling Kruzr that you didn’t think that this could be done? I’m never going to bet against you being able to write a script to do practically anything. Super work!

Here is another doodle as an example of how to use the script

(had to try a bit of Aurick’s tutorial hence the grass)

The main part of the image was made with a one colored Spherical Blend material. Due to it’s material properties there are many shades of color within it. I sampled a small part of the material and found that it stopped at 255 separate unique colors! All from one material.

Then using varying intensities, draw size and Sresolution I brushed over the image. Then with Use Samples on I replayed the strokes adding much complexity and color to the original image. BTW all done with only MRGB on, because I didn’t want to add any new material only color and the original material properties of the color. I then used a touch of highlighter brush just using a high Sresolution to dapple some intensity here and there.

I wanted to see how it worked with other materials so I imported Aurick’s superdooper rock tool and material and placed them around on a different layer. Using the same sampled colors from the image I brushed over them, changing the bluish rock to a sandstony rock of multi hues.

Simple example but hopefully it demonstrates a bit what you can do with it.

Well done digits! This looks like fun! :+1:
I’ll give it a wirl! Great documentation web-page too!!
Upham :slight_smile:

Digits, I’m in awe.

You’ve taken ZScripts to places I couldn’t imagine. This is another in a line of truly visionary programs.

We’re currently working on a ZScripts Library over at Pixologic.com, and I hope you’ll allow us to include your fine work there when it’s opened.

Thanks,
dave

Digits! This is wonderful and thank goodness it’s Friday! I’m on my way to play, play, play with this new widget!

Thanks for sharing!

Great stuff Digits…
jaime :wink:

Thanks guys! Davey I would be estatic to have my Widgets hang out at your up and coming site, an honor in fact. I can’t wait to see what you guys have cooked up, I prepare to be blown away.

I love the blue face digits! :eek:
when I have learned more i will do only
blue faces… (my favorite color) :slight_smile:

just gave a try to your fantastico new script, Digits! what a major cool tool! i had covered the backgroundlayer with very nice looking spherebrush-gradients, but spoiled them (have to allow more undos) and followed your advice in the .doc to use it with another script of yours (i chose interpolate)… hence my question: is there a way to combine the 2 scripts (prior to your next widgets-update-release)? i would love to use both without loosing the settings of each when loading the other one. BTW: i would love to save lets say interpolate-settings to use them in another pic… any way to do this?

however: i’m mucho grateful… your contributions to z-community are unbelievably helpful and simply multiple :+1: fantastico! THANK YOU, Digits! :smiley:

  • juandel
    (planning to give auricks yummy vegetation-script and the outrageous looking multimarkerscript © winged-one a try asap… and there are about 10 more Digits-scripts to experiment with… not to mention the picnic. too much to learn, amigos! :D)

ha, could not resist to give it another try… reminds me of being fed with all those wonderful scripts :wink:

i solved the tiny undo-prob by simply rereading your .doc, Digits… a muy clever solution! :smiley:

thanks again

  • juandel

These are truly wonderous Juandel masterpieces. It is most gratifying to see such good use made of little widgets. I really appreciate you sharing your explorations.

I am going to go ahead and make a pre-release of Digits Widgets available here to solve your problem with working with the different scripts. The color functions are available to all scripts, angle, interpolation etc… Unfortunetely there is no way to save information each time you load another widget as of yet. One day perhaps, it is a request of mine to pixologic. I am thinking that I can encode information into colors on the canvas! I will work on that.

You will notice some new functionality in the scripts that are as of yet undocumented, please ask questions if you need help.

Here they are. I would suggest putting them in a separate folder than the released version, I think I have gotten all the bugs out of it! Please report any that you find and of course USE at your OWN Risk. But I think it is ok.

DigitsWidgetsPrerelease.zip

Cool Script Digits! :slight_smile:
After a little experimentation I’ve been able to use it (ran into one or two of those unexpected bands of color. ;))
Anyway, I’ve got a question. As I understand the script, you would need to set the drawsize to 1 and color ever single pixol in the area to have have the object fully colored according to its Zdepth. Now, the problem with doing this is that it would be really hard to color every pixol. Especialy since after a while of coloring ZBrush seems to stop the stroke (duno why this is?), and the script doesn’t work with the continuous stroke. So I’m a little unsure how to get an object completely colored by ZDepth. :confused: I suppose it doesn’t really even need to be that accurate. I just wondered… :slight_smile:
It’s still a really cool script, I’m having tons of fun with it! :smiley:
(BTW, nice images Juandel! :))

Traveling in unknown dimensions Digits-great innovations here.

Hi Muvlo

Excellent question!

First off I will explain what the script does. When you make your reference stroke (the one that you grab the data from) all kinds of of information is saved internally with it. When you use my script to play it back what I do is look at each point in the strokedata. It gives me the XY value of each data point, I then look at that pixol on the canvas to determine its Z Depth (the strokedata is 2D) Based on its XYZ value and the settings that you have C-X Y or Z I change the color and then dab that spot with the brush (that is why it isn’t continious). The diameter of that dab is your drawWidth, Depth etc… of whatever the tool that you are using, simple brush, singlelayer etc… You can even use other brushes smudge, glow etc… to go over what you just did.
What does all this mean? It means that each dab, depending on the brushsize etc… will most likely overlap and interact with the last color drawn. You are right to color each pixol in terms of XYZ the brush would have to be a size of one. This would be tedious indeed, and the reason that the stroke stops after awhile is that the stroke has filled its available memory.
So using this tool is up to your artistic feeling etc… Experiment with it to get different effects, use the SResolution to smooth out the dabs etc… Smudge tool to blend it a bit etc… The thing this tool does well is get an initial complexity of color on your canvas, something that would be incredibly difficult to achieve by hand.

I find that the sample function is the most useful. Grab a sample from another image or just paint a few of the colors that you would like to have as a palette and grab the data.

Thanks for the feedback Muvlo, I wouldn’t mind seeing some of your experiments! And feel free to ask more questions. I will add all of them to my documentation

And don’t forget you can change the C-X Y or Z or use a combination of them to control the gradient colors.

Thanks for all that info Digits! :slight_smile:
I’ll set the ol’ bean to digesting it, plus reread the documentation, and see what I come up with! :slight_smile: