ZBrushCentral

Zplugin: Draw Size/ Focal Shift/Z Intensity Sweep

The other script uses those same hotkeys so you will need to remove that before mine will work. Look in you ZStartup/ZPlugs folder for a file named ‘20 Useful Short-cuts.zsc’ (or something similar) and remove it. Restart ZBrush and my hotkeys should work OK.

Cheers,

i was confused. When i was hitting S this drawsize pop up would come up. i thought that was your script and that the other 2 would function the same way. Turns out that the Draw Size one of yours was not even loaded and that the stock S shortcut does that strange pop up thing.

Looks like all is well now. although zbrush doesn’t like to auto load them for some reason. I have to hand load them.

Check that the three .zsc files (AdjDrawSize.zsc, AdjFocalShift.zsc, AdjZInt.zsc) are in the main ZPlugs folder (ZBrush2/ZStartup/ZPlugs) and not in a subfolder created by the unzipping. Plugin .zsc files that aren’t in the main ZPlugs folder is the usual reason for them not loading on startup.

Hi Marcus,

Thanks for the great script, I been using it sense you frst posted and love it. I have a question though I think its probably a wacom issue. I setup my pen to so that the toggle switchs activate the “s” and “1” hotkeys. I figured it be pretty sweet to control everything from the pen, but sadly it does’t work. Instead of getting a fluid transition from a larger cursor to a smaller one I get this nasty stuttering effect. For Some reason I can’t simply click and scroll the size.

Any ideas?

Hi Enigma,

I’m glad you’ve found the plugin useful. :slight_smile: As for the problem, I would think that it is to do with the way ZBrush/the plugin handles key presses. For scripting purposes ZB interprets holding down a key in the same way as pressing it repeatedly and the plugin has to work accordingly. This works ok with an ordinary keypress but with the Wacom pen obviously things don’t work the same way. I have a Wacom myself so I’ll take a look at the set up but I doubt if there’s anything I can do to improve things.

EDIT: I’ve tried it. The only way I could get any reasonable response was to press the button repeatedly - but it was far from smooth and frankly not worth the effort. Sorry.

Hey, Marcus

Thanks for the reply, the plugin rock regardless. I noticed the same behavior with keystroke that I assign to the express keys. Strangely though the pre-assigned keys like ALT, CTRL, and Shift, all work fine as held keys. Oh well, so much for pure sculpting nirvana. :lol:

Thanks again!

Hi Enigma,
Yes, the Modifier keys work differently in ZB - they aren’t automatically cleared. Perhaps ZB 2.5 will have better hotkey handling… :slight_smile:

Cheers,

Hey Marcus super duper sweet script.

one issue that I am having with it however is if you are painting on the canvas and you use the “1” hotkey to change the RGB / Z intensity all the way to 0 instead of going to zero the RGB Intensity seems to go to 100 %. if you manually go and set it to 0 with the mouse it does indeed go all the way to 0% but not with the custom hotkey.

Not a huge deal just thought I would throw it out there.

Again very very very nice script. save a lot of time and make painting/modeling much more intuitive. ROCK ON

Hello again Marcus,

once again very awesome script.

I had one more suggestion for improvement on it however,

by default in zbrush when you hold down the “s” key you get a very similar effect as your script, it adjusts the Draw Size but not quite as intuitively as yours. you have to let off the mouse and manually move the slider. I am sure you are already aware of this.

However the very cool part about the default way is it brings up a little slider and tells you what number you are on and what you are editing.

a lot of times I work with all the tabs and windows hidden to maximize my workspace and so I don’t have the top panel where it says focal shift, draw size and z intensity displayed.

so I guess in short, my question is, is it possible to incorporate a tiny little slider with a number over your mouse when you hold down 1, 2 or s so that the user can tell what he/she is editing and what number they are changing it to, just like the default way that the hotkey “s” does it? Of course the way you change the number by just moving the mouse or pen would be nice to keep as well :smiley:

Again, awesome script!

Hi --E–,

Many thanks for your comments and I’m glad you like the plugin.

On your first issue (and apologies for the delay in replying): I can’t reproduce this and don’t know why you should be getting it. I have noticed that zscripts can work slightly differently on different set ups so perhaps this may be the problem.

On your second suggestion, this isn’t practically possible within the limits of scripting. I will experiment with some indicator (perhaps in the NoteBar) when I get around to updating the plugin but as far as a slider goes it’s an either or situation. All sliders in ZBrush will pop up at the cursor if they have a hotkey assigned but it’s not possible to combine them with my script action.

Cheers,

Well, I had a look at the script and here is an update. :slight_smile:

Unzip the zip file into your ZStartup\ZPlugs folder. If you’ve installed the plugin before then the three new files should overwrite the old (the names are the same):

AdjDrawSize.zsc
AdjFocalShift.zsc
AdjZInt.zsc

Hotkeys as before. If you don’t want any of the hotkeys simply delete the relevant file.

In this updated version the Draw Size, Focal Shift and Z Intensity are all indicated in the NoteBar at the top of the UI. This helps if you use a maximized workspace.

(–E-- : I have also included a line of code which may solve your ZIntensity problem - let me know!)

A tip for those who work with a maximized work space:
To stop the canvas being resized when you use the hotkeys (or many other plugins), drag the bottom canvas resize handle until it is almost at the bottom - about 5 pixels is right. Then store your UI configuration (Ctrl+Shift+I). The canvas will now remain at this size.

UIwindow.jpg

I hope you find the update useful,

Marcus! wow awesome as hell, that is even better than I would have wanted! Because the ui that tells you what you’re editing and the number you are changing it to, is off of the viewport and where you would be modeling! This is definitely in my top 2 fav scripts now :smiley:

the “rgb intensity” being 100% when I use the “1” hotkey to go to zero is still there for me. But again not that big of a deal since who paints at 0?? :wink:

this script rocks!!! great work! :smiley:

Hi,
I have noticed in some tutorials and manuals that people are able to set their draw size quite high (512). I seem to max out my draw size at 256. Any thoughts on how to go about getting larger draw sizes?
Best,
Jacques

preferences / draw / max brush size should let you set the max to 512

Thanks for comments. :slight_smile:

This small update enables you to change the hotkeys if you wish to using the Hotkey Editor. In the Editor the plugins will be listed under the ZPlugin tab as MarcusTools:Focal Shift or whatever. Just assign the hotkey of your choice, and save the new hotkey before closing the Editor. You will need to restart ZBrush before the new hotkeys will be available.

Hi Marcus,

I wondered if there was some specific ZScript command usage that you would recommend be applied in future scripts when coding HotKeys?

Sven

Hi Sven,

In general it won’t be a problem - a hotkey assigned in the relevant part of the [IButton code can be overwritten by the Editor. With my DrawSize Shift zscript I repeated the hotkey value elsewhere and that caused the problem. As you suggest, I think it would be useful to alert other zscripters to this and so I shall add a bit about it to the ZScript Code Samples thread and the ZBrush Wiki.

Hi Marcus,

First, I'd love to use your Zplugin: Draw Size/ Focal Shift/Z Intensity Sweep.

Here is a little advise: When change the z intensity, I want to see the z intensity value show where the mouse is!!!

Because when I change the Draw Size/ Focal Shift, I can see the change by the mouse circle. But only change the Z Intensity, I must look up to check the value. It is realy bother me. I hope you can help me.

Hi Marcus,

This is a little advise: When change the z intensity, I want to see the z intensity value show where the mouse is!!!

Hi Marcus,

This is a little advise: When change the z intensity, I want to see the z intensity value show where the mouse is!!!