ZBrushCentral

Using the middle mouse button

hi, i have just sent away my hard earnt cash for the full version of Z and i’m interested in the scripting side of things.

i’d like to make a script that uses the middle mouse wheel on my mouse to adjust draw size and ALT+middle mouse wheel to adjust Z intensity. i’m sure a similar setup could be used on a tablet too.

is this possible or am i just dreaming? :qu:

Hi Tjaden
I don’t know but if you go to the Subscript Menu you can find “CMD” who show all the command (all syntax) of the language!
Hope this help!
Pilou

In the current version (1.55b) you cannot do that with just Zscripts. The middle mouse button is not supported in Zbrush. But if you have a Wacom you might be able to assign a key to the middle mouse button and have a zscript pick up on that key and adjust draw size/Z intensity.

If I get some time I will take a look at it. That is if you have a Wacom tablet?

Hey frenchy and TV eyes :wink: i don’t have a tablet yet but i am going to get a wacom for Xmas so any input you could give would be great. the idea is to be pretty much able to keep sculpting without having to right click or go to the draw menu. to me this would make the whole process flow alot smoother and speed workflow up…(not that zbrush is slow!!!)

Do you know you can press Ctrl and click+drag an interface item out unto the canvas? You could arrange a lot of the stuff you use frequently and negate the need to access the palettes. Save your interface changes with Ctrl+Shift+i.

Also, the ‘s’ key brings up a Draw size slider directly beneath the cursor.

Regarding Wacom tablets, I have an Intous 1 12x9. Very pleased with it. I first bough a Wacom PenPartner(now called Graphire) and upgraded a year later. 12x9 sometimes feels to large and other times it is perfect, for me, but most of the time I don’t notice the size. If I had to buy a new tablet, I guess I would go for the 6x8.

A couple of threads on Wacom tablets:

Which tablet?

Wacom Intuos2 or Graphire2 ?

Btw, if you were thinking of getting a Wacom Graphire then make sure that the drivers offer mouse button mapping. I heard the Graphires have a cut down version of the drivers, not sure if that is true.

Try right clicking on the mouse over the canvas… or barrel clicking the stylus.

Sven

thanks TV eyes. i think the intuos 2 9x12 will suit me perfectly.

Svengali thank you, i was aware of that function. it is not quite what i had in mind. could you imagine being able to adjust the size of a stroke as you draw? i know i
m probably being greedy. as you have said all the key features are at my finger tips but… for example if i wish to change my draw size and z intensity that pop up menu will disappear after the fisrt function and i have to right click again. it is not a big problem. it’s just a workflow thing. being able to control specifically draw size and z intensity as you sculpt just seems to be more in keeping with the organic style of modelling in zbrush. anyway thanks for the help. One question… if you can’t script an action for the middle mouse wheel…could you maybe have preset draw size values that u use alot set to buttons on the keyboard or maybe have the plus and minus keys on the numberpad move through values for draw size?

Tjaden,

Thanks for the idea on the keyboard control of brush size… I just added that feature to MOLDY, the modeling tool I have posted over in the Zbrush Forum.

If you have a chance, download MoldyTool.TXT and try it out. It might be helpful to you while modeling since it pulls together, in one interface, most of the controls used while modeling.

Sven

thanks sven. i’ll check that out now!!! :slight_smile: :slight_smile:

Is there documentation on the various parameters and codes for the Hotkeys.txt file format? I’m finding this whole ctrl+alt click, select buttons thing annoying and I’d like to just edit the text file and get to work.
I love the power of this tool but some things are a little clumsy to use. The Hotkeys assignement function for one. So, if some one could point me to the docs and not a video, I’d have a whole lot better user experience. In case you’re wondering, I need to be able to do stuff like this with all the tools:
//My edits so far that work
[DRAW:DRAW SIZE,759] // Ctrl+MOUSEWHEEL UP
[DOCUMENT:IN,247] // MOUSEWHEEL UP
[DOCUMENT:OUT,248] // MOUSEWHEEL DOWN
The one that keeps failing using the ctrl+alt click method:
[DRAW:Z INTENSITY,1272] // Alt+MOUSEWHEEL DOWN
That command just brings up the draw menu and does not let me move the slider for z intensity.

Hi @RKapuaala , you can assign any hotkey with CTRL+ ALT as this is the way you can assign hotkey, and same apply to the delete button.
just as indication for you to understand the assigned value:
shift = 256
CTRL = 512
ALT = 1024

CTRL+ mouse wheel up : 512 + 247 = 759
As tip for you, you can check in Preferences:Utilities, when pressing a button the View keyboard status display the value of the pressed key input.

and to complete if you want to now get the value from View Keyboard Status
check the Ascii table here ( lowercase letters):
a = 97
z = 122
etc…

https://www.asciitable.com/

Hope it helps,
Nicolas

That’s what I’m looking for, but how about the middle button? I’m going to take a wild guess and assume it either 246 or 249? Thanks, you’ve put me on the right track, but where can I find all the allowable commands?
IE
Document: Draw etc…

no you can’t access to other inputs from the mouse device, you need to make a plugin that need a c++ program to press the middle button for you, like what is done with the middle button plugin.

what do you mean by allowable commands the default hotkey ?
check the documentation here :

http://docs.pixologic.com/user-guide/keyboard-shortcuts/

Nicolas

I read that already, it only gives the current default settings. If I’m understanding you clearly, it sounds like Zbrush recognizes all the mouse functions except the middle button. Bummer. I’ll have to look around for a developers kit? I seem to recall in this thread or another that some one mentioned a plugin? Is it reliable?

yes Zbrush do not register actions from the middle button so it gonna be hard to bind some function to it. Maybe, a simple dll is not enough, but a background application that track the mouse input so it generate a zscript and run a batch command that call ZBrush windows and execute a Zscript.
For c++ library that can do key/mouse input SDL is the most common library.

there is no developers kit just a template of project for visual studio.
you can get it there :

Thanks Faceless. You’ve been a huge help.

1 Like