|
|
Reply Quote UserGallery ThreadGallery Post#1 |
|
New Member
Join Date: Feb 2004
Posts: 16
|
Canvas Color Palette for zb3.5 and zb3.1.
Like many of you, I loved marcus_civis' ZSwatch plugin. As a scripting exercise I wanted to make my own version with a slightly different twist. This plugin drops the active color to a user specified location on the canvas. You can arrange your palette on the top or bottom, left or right side, and orient it horizontally or vertically. You can save and load as many palettes as you wish. Canvas Color Palette use:
-Toddp |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#2 |
|
Senior Member
Join Date: Nov 2003
Location: Chicago
Posts: 103
|
Looks great! I will try it immediately!!!
|
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#3 |
|
Senior Member
Join Date: Aug 2008
Location: Bangkok Thailand
Age: 42
Posts: 538
|
Great Color Palette! Thank you so much.
![]() |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#4 |
|
Senior Member
Join Date: Jul 2002
Location: Copenhagen, Denmark
Posts: 2,372
|
Great plugin and a neat implementation, thank you
)
__________________
Mark |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#5 |
|
New Member
Join Date: Feb 2004
Posts: 16
|
|
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#6 |
|
Senior Member
Join Date: Nov 2003
Location: Chicago
Posts: 103
|
Works pretty well, thanks!
I do have a couple of comments though: I could not see swatch 0, and I think I finally figured out why: My canvas size is slightly bigger than my screen. is there something in Zscript that can be done to remedy this? Also, it would be grand to have more swatches. Perhaps you can build a whole slew of them (50?) into the plugin menu and just let people pull out as many as they like, instead of limiting to 10? Is it possible to implement a stack of rows or columns instead of just one strip? perhaps A B C D E toggle buttons, where each letter indicates the next row or column? So if I want to add a 5th swatch to the 3rd column of swatches, I would toggle "C" then press "5" At any rate, nice script, thanks so much!!! |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#7 |
|
Member
Join Date: Apr 2006
Location: White Beach, Spain
Age: 99
Posts: 77
|
Do you know wheres the color picker button in ZB? i need to change the default "C" hotkey.
__________________
Doqpelganger's Portfolio & Blog |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#8 |
|
New Member
Join Date: Feb 2004
Posts: 16
|
alannoon - Thanks for the feedback.
- I debated whether to account for a canvas that was larger than could be seen. There are plenty of zscript commands I could have used to place the palettes on screen. Ultimately I decided that it was better if they always appeared in a predictable location on the document even if it was off screen. As soon as the user would zoom out or scroll, new color patches would appear in a new location which was not preferable to me. - You can actually have 80 ( less 4 since the corners overlap ) patches of color by selecting a different side or orientation. I purposefully limited the number because I'm storing the data in memory so you can save and load them. Granted 1620 bytes ( 1.5K ) is very small, but I wanted to be minimally intrusive. - I thought about rows and columns of patch locations as well, but again wanting to keep things minimal, decided to go with what you see. I may make another version and do exactly as you describe. -Toddp |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#9 |
|
New Member
Join Date: Feb 2004
Posts: 16
|
Doqpelganger - I do not know of any equivalent button press that would give you the same functionality as the default "c" hotkey. My guess is that it is something similar to a zscript, but internal to the exe and/or not revealed to the user. I suggest one of the following workarounds:
|
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#10 |
|
Moderator
Join Date: Jun 2004
Location: UK
Posts: 4,558
|
A very interesting and useful solution.
You could add a couple of buttons for color picking so that users could assign their own hotkeys. You need the code below Code:
(You might need to change the item ID for ZB 3.1 Mini HSV Color selector, I've a feeling it might be 3331.) HTH, |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#11 |
|
Member
Join Date: Jul 2004
Location: Switzerland
Posts: 45
|
Cool Plug in very usefull thank you.
If you make a color row with the size of 32x32 and then change the size to smaler numbers lets say half the size, then you can ad more colors to your row because the smaler overlay the biger one.
__________________
www.oc-prod.com |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#12 |
|
New Member
Join Date: Feb 2004
Posts: 16
|
marcus_civis - Thanks for the ideas. I was thinking of using PixolPick, but yours would allow for the shaded color as well.
zayzcoon - Yes, that was my intention to allow for multiple sizes to overlap. Just be aware that you will only be able to save and load the last patch if multiple patches overlay each other. For example:
-Toddp |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#13 |
|
Senior Member
Join Date: Aug 2004
Location: Boston, Ma
Age: 25
Posts: 185
|
This is a very sweet and useful plugin...now no more go back to photoshop to get the colour i used for my models
|
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#14 |
|
Senior Member
Join Date: Jul 2002
Location: Copenhagen, Denmark
Posts: 2,372
|
Doqpelganger - To change the hotkey for picking the main color simply assign a hotkey to the Color > Main Color swatch. This also works for the Secondary Color swatch. Note that you can only pick unshaded colors this way.
__________________
Mark |
|
|
|
|
Reply Quote UserGallery ThreadGallery Post#15 |
|
Senior Member
Join Date: Oct 2005
Posts: 658
|
Damn, I just found this and it's fantastic! This is exactly what I've been wanting for a long time. I can't believe with all of the powerful texturing tools ZB has, something like this isn't implemented as a base feature already. FYI, this works perfectly on Mac 3.2 as well! Great job!
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|