ZBrushCentral

How to use the Hotkeys feature in ZB 3.1?

thanks. How might i go about removing the hotkeys from code?

One thing i tried is i moved the “increase by 3” script key over to “i” instead of “l”. Now as far as i know i have nothing set to “i” in Zbrush3.1 because when i click it it looks like nothing happens at all. But the script still does not work. The Decrease “k” works still but the Increase “i” does nothing.

Is there something wrong with my script?

I can’t see anything that is likely to cause problems. You don’t need the IFreeze command for a script like this (and that can cause problems under some circumstances). I would assign the hotkeys in ZBrush rather than in the code though. ‘i’ is the hotkey for RGB Intensity and assigning the hotkey in ZBrush will overwrite that, whereas the plugin code will not. Try this code:


[ISubPalette,"Zplugin:Sliders"]

[IButton,"Zplugin:Sliders:Draw Size Up","Increases Draw Size by 3 units",
[IShowActions,0]
[ISet,Draw: Draw Size,[IGet,Draw: Draw Size]+3]
]

[IButton,"Zplugin:Sliders:Draw Size Down","Decreases Draw Size by 3 units",
[IShowActions,0]
[ISet,Draw: Draw Size,[IGet,Draw: Draw Size]-3]
]

Thanks. What keys is this code linked up to? or would i need to insert that myself like in the previous paste with " , ‘key’]" ?

The problem is that i dont know how to get this functionality inside of Zbrush. I dont know how to set up a key that does +# and -# on the brush functions. Is there a way?

I love this setup because the 10’s are great for a while, but then they get to be too much and the 3’s allow me to get in close, and i find it much faster with how i work than the click-menu with the sliders.

There are no hotkeys assigned in the code. This is deliberate because I have found that the best way is to assign the hotkeys in ZBrush using the new hotkey feature. Do this:

  1. Put the text file with the above code in the ZStartup\ZPlugs folder.

  2. Start ZBrush and load the textfile using the ZScript:Load button.

  3. Locate the buttons in the new ZPlugin:Slider subpalette. Ctrl+click on a button to assign a hotkey, then press the horkey you want to use. Repeat for the second button.

  4. Press the Preferences:Hotkeys: Store button to save the new hotkeys.

HTH,

Thank you very much Marcus. Its working great!

I did not know that it was loading stuff into the ZPlugin area, which now in retrospect i see that its setup in the “ISubPallete,ZPlugin:Sliders” part.

Stuff like this that helps me get more proficient in how Zbrush works is excellent. Thanks again man.

Hi marcus,

I do like your little text file. I wanted to assign more hotkeys to brushes the way you did it but can’t figure out where to get the numbers of the brushes from?:o

Hi Intervain,

You’ve no need to use the text file unless for some reason you can’t assign hotkeys using the ZBrush method. Just Ctrl+click on a brush button and then press the hotkey. The numbers in the text file are the hotkey references. You can find these out by looking at the Preferences:Utilities:ViewKeyboardStatus slider while pressing the key combination you want to use. The ‘button path’ - which is the other part of the hotkey command - can be found by holding Ctrl while the cursor is over the button: the path is shown at the bottom of the popup note.

HTH,

thank you :smiley: