ZBrushCentral

Undo/redo hotkey assignment problem

Hi, I’ve been having trouble assigning a new hotkey to my undo buttons. I assign them and they work once and then return to the defaults. I’ve visited these threads along with a few others and none have solved the problem.
Undo hotkey, cntrl Z, stops working repeatedly
Undo hotkey change does not work, … ctrl+z too tricky. How to resolve?[Answered]
4R2b Cmd+Z Undo � not working and can’t assign.
My goal is to assign the Tool undo/redo buttons as such:
Undo: Left arrow button
Redo: Right arrow button

As a side not, something else that I think is worth mentioning is that some hotkeys I’ve assigned haven’t had this problem and they show up in the StartupHotkeys.TXT. However, there are other assignments that work but don’t show up in the txt.
For example, I’ve assigned tool rotate to 7 on the numberpad, move to 8 on the numberpad, and scale to 9 on the numberpad.

Here is what the text file says:
//ZBrush Hotkeys
[BRUSH:MORE ITEMS,98] // B
[BRUSH:STANDARD,5447796] // Popup+T
[BRUSH:SMOOTH STRONGER,5447795] // Popup+S
[BRUSH:MOVE ELASTIC,5054565] // Popup+E
[BRUSH:MPOLISH,7151728] // Popup+P
[BRUSH:CLIPCURVE,4399203] // Popup+C
[BRUSH:CLAYLINE,4399212] // Popup+L
[TRANSFORM: PF,220] // �
[TOOL:GEOMETRY:LOWER RES,45] // -
[TOOL:GEOMETRY:HIGHER RES,43] // +
[TOOL:SAVE AS,48] // 0
[ZPLUGIN:MISC UTILITIES :BRUSH>>,221] // ]
[ZPLUGIN:MISC UTILITIES :<<BRUSH,219] // [

I don’t see anything referring to the numberpad hotkeys in there. Any explanation for why it’s doing this? If not, no worries: what’s important is that they work. My real priority is to get those undo/redo buttons working.

Thanks very much in advance.

Which StartupHotkeys.txt file are you opening? Note that ZBrush now stores configuration files in the Public folder. On Windows the StartupHotkeys.txt file would be in:
C:\Users\Public\Documents\ZBrushData\ZStartup\Hotkeys\

On Mac OSX it will be the Users/Public/ZBrushData/ZStartup/Hotkeys/ folder

Cool, thanks for that. I found the document and here’s what’s inside:

//ZBrush Hotkeys[BRUSH:MORE ITEMS,98] // B
[BRUSH:STANDARD,5447796] // Popup+T
[BRUSH:SMOOTH STRONGER,5447795] // Popup+S
[BRUSH:MOVE ELASTIC,5054565] // Popup+E
[BRUSH:MPOLISH,7151728] // Popup+P
[BRUSH:CLIPCURVE,4399203] // Popup+C
[BRUSH:CLAYLINE,4399212] // Popup+L
[TRANSFORM: PF,220] // Ü
[TOOL:GEOMETRY:LOWER RES,45] // -
[TOOL:GEOMETRY:HIGHER RES,43] // +
[TOOL:SAVE AS,48] // 0
[ZPLUGIN:MISC UTILITIES :BRUSH>>,221] // ]
[ZPLUGIN:MISC UTILITIES :<<BRUSH,219] // [
[TRANSFORM:ROTATE,55] // 7
[TRANSFORM:MOVE,56] // 8
[TRANSFORM:SCALE,57] // 9
[TRANSFORM:RAW POINTER,52] // 4

[EDIT:TOOL:REDO 0,254] // RIGHT ARROW

[EDIT:TOOL:UNDO 0,252] // LEFT ARROW

At least the left and right arrows show up in the document, but when I open up ZBrush and use it, it only works once. Then I end up having to use CTRL-Z and CTRL-Shift-Z again.

Edit the last lines so that they are like this:

[EDIT:TOOL:REDO,254] // RIGHT ARROW

[EDIT:TOOL:UNDO,252] // LEFT ARROW

Save the file and restart ZBrush. They should work OK.

It worked! I’m left handed so this helps me out a lot! That’s why I’ve got all those transform buttons on the number pad.
Thanks a bunch!

Just so I understand this going forward, what you said in this thread about the numbers referring to the hotkeys means that if there are numbers before them, they need to be removed, correct?
In my case, 252 and 254 had a 0 before the comma. In other words, if I ever run into this situation again with another hotkey assignment, I should remove the number before the comma?

No problem. :slight_smile:

The numbers will only be there for Undo/Redo. They appear because when you’re editing a model the undo ‘count’ will be at a specific number (and if you’ve not done anything it will be zero). When you assign a hotkey to the Undo/Redo that number gets put in to the StartupHotkey.txt entry, with the result that the hotkey only works for that number. Removing it means that the ‘count’ is ignored.

Ok, I get it now. Thanks again and I hope others benefit from this thread.
Happy ZBrushing!