Finished ZScript : Zwatch color palette
This is a little utility that I wrote to learn about ZScripts. It is basically a reworking of a script by Jaycephus here (many thanks Jay). My version simply stores a swatch of 30 colors with the ability to save and load other swatches. I post it in case anybody might find it useful.
Edit : A new version is available: see later in this thread.
Last edited by marcus_civis; 08-24-04 at 11:53 AM.
Cool!! I for one will find it very handy as I find the picker doesn't always do exactly what I want and have wish I had something like this for when I am working on a skin texture.
I'm glad to see another zscripter in action
Nice utility...and with source too!!!
Many thanks for the encouragement!
I tried your script and everything worked great until I tried to load a saved file. And dang it I just forgot the error it gave me....something about inputs exceeding limits of the script ....something like that.
Now it could be my fault as I was trying to run it within PM and come to think of it I haven't tried loading it first and seeing if it stays active when I go to pm. So I will try that and see what happens first before I bother you more. Sorry, I am tired and brain is a bit foggy.
I think someone posted some lines you can use to make this a plug-in rather than a zscript....I know I saved them and will try to find the link. This would make a great plugin!
i think it is very difficult to turn this script into plugin, because the color are written with SectionBegin, etc.
Maybe with new info from Pixologic...
Thanks for the heads up Cameyo!
I have been meaning...and well itching lately to look into Zscripting. Was kinda waiting for Pixologic to post their sdk or pdf on scripting and plugins...however they are going to release that info...before I did but I reckon I better get started now in order to catch on to the deluge of info I am sure will come soon!!
Ps. Aminuts fan of Cameyo too! I sure miss Frenchy around here!
I'm sorry that you've been having problems. Do you get this error every time you try to load a saved file? If so, have you altered your ZBrush setup from the standard? I've tested the script alongside PM and not had any trouble. Any info you can give me will help.
I've put together a plugin version that loads the script into the ZScript window (as cameyo says, I think it's not possible to have it open the whole time) either by pressing a button under the ZPlugin menu (which can be dragged to where you want) or by using the keyboard hotkey "B" (if this conflicts with one you already use, let me know). I'm working on the script automatically loading a default palette so that you don't have to reload the palette every time... but that's not ready yet...
Yeah, I have changed zbrush from standard setup and it did do it everytime. I haven't had a chance to try it the way I mentioned below....am going to shortly. I will also checkout this new one and see if that works any differently for me.
Thanks for taking the time! I know I am gonna use this alot once I get it going!
I will let you know what happens.
Excellent! Especially for a first Script. One quick suggestion: Why not save the entire active palette each time a color changes? It only takes a second and that way if anyone jumps out of Zwatch, the palette reloaded when they return is absolutely current.
p.s. no problems here on Load and Save.
I just tried the plug-in and, not sure why, but it installs in my SNAPS group, not a separate group called COLOR. Hmm. If you want, send me the script and I'll have a look.
Last edited by Svengali; 08-21-04 at 11:01 AM.
Let me know if you have any luck. I confess I've not much idea as to why you're having problems. It may be to do with the way the script identifies the color blocks but if that's the case I would have thought that it wouldn't run at all.
Many thanks for your encouragement! I'd like to do as you suggest with saving the colors... and I'm working on it! Have sent you an email with the plugin "load" code. Many thanks for offering to take a look.
Thank you kindly for this script. Being able to see my color swatches helps me pick out which color i need next rather than having to use windows swatch picker.
Can you send to me the source?
Only a small hint: try to use [FontSetSizeLarge] to do bigger color buttons...some variations are difficult to see with small color.