ZBrushCentral

Zplugin: Draw Size/ Focal Shift/Z Intensity Sweep

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!!!

Hi xueqing0622,

Thanks for trying the plugin. I agree it would be good to see how the Z Intensity changes but unfortunately it can’t be done in zscripting. :frowning:

Thanks for your reply, Marcus

I want to know it is any way to invoke plugin/order like z intensity(shift+I).

Thanks for the great plugin, Marcus !!! I love it :smiley: :smiley: :smiley:

Thanks Marcus for a great script. I’ve started using Zbrush again and recently downloaded your MaxCanvas script, It works really well with this plugin. But have you or anybody used Silo2 beta? their displacement painting works really well using just the - MMB - adjust radius and strength of the current brush. Drag left/right for radius, up/down for strength. This shortens key strokes even more (you don’t use any) Would you be able to code a similar script like this?

A Merry Christmas to all. :smiley:

Hi DigitalDreamer,
I’m glad you like the plugin. :slight_smile: Yes, I’ve used the Silo beta and I know the functionality you’re talking of. It would certainly be possible to script something similar, though I shall probably leave doing it until the release of the update.

Happy Christmas to you!

Cheers,

OK thanks Marcus, looking forward to that.

Merry Christmas to you! :smiley:

Marcus. thanks heaps for this little plug. i’ve been using it a good while now but one thing has always bugged me. and it might just be my setup. not sure. but i get this inconsistency with the resizing of my brush. seems like most of the time it evaluates the size from the left edge of the canvas ( the effect being that if my starting location is beyond 256 pixels from that edge. say. the cursor will jump straight to 256 in size. my default max. and i’ll have to resize from there ). and sometimes it’s even a little random. neither of these bahaviours are preferable. i’d like for the increase / decrease to begin from the current brush size and be calculated from there. would it be possible for you to make this edit ? or. alternatively. make public the code and i’d tinker with it myself ?

tacit math,
I’m glad you find the plugin useful. :slight_smile:

The problems you are having may be due in part to your set up (zscripts appear to work slightly differently on different set ups) but also the nature of the script can also throw up these effects in specific circumstances. In part this stems from the fact that if you hold down the script hotkey (in this case ‘S’) the script continually reloads - a ‘feature’ of all zscripted plugins. I’ve had to script around this.

You’ll appreciate that for the script to work I have to grab a starting point on the canvas and then measure mouse movement. This starting point is only deleted from memory when the mouse or pen button is clicked. (It can’t be when the script exits for the reason given above.) So if you click the hotkey once, move the mouse to the right, then click the hotkey again there will be jump in Draw Size such as you describe. In my testing it’s quite easy to do this inadvertently and perhaps that is what you are doing. (Note you should be able to adjust the size anywhere on the canvas area or background. If you can’t check you have the latest version from post# 31.)

I’d certainly like to get rid of this behaviour and I hope to revisit the code soon.

Cheers,

thanks for the reply Marcus. well. if the nature of a zScript is as you describe. refreshing itself in that manner. we might be a little screwed. i can indeed resize my cursor from anywhere on the canvas. but yeah. 'cept it ’ jumps ’ directly to whatever size seemingly regardless of the current size of my brush. all in all though the script is an aid to workflow ( i appreciate the fact that it’s activated without the unnecessary need to ’ click & drag ’ ). and while i feel it could do with some tweaks i thank you again for writing it up just the same

.