ZBrushCentral

how to disable the z mirror hotkey

Hi All,

I am a zbrush newbie.
So go easy on me :wink:

I tried using this command in the defaultzscript

[ISetHotkey,Edit:Tool:Undo,122]
[pd]

Hoping that it would overwrite the z mirror button but whenever I am in edit mode the z mirror hotkey takes over and breaks the z undo hotkey.

Any suggestions?

Thanks

Assigning hotkeys in ZB is fraught with difficulties. Sometimes a hotkey works once only, other times not at all. There are also problems with interface items that aren’t present when ZB loads, and the Z symmetry button is one of these.

Generally, you can reset a hotkey to no hotkey by using the code:

[ISetHotkey,Draw:DrawSize, ]

but for some reason both UNDO and Z Symmetry resist this, and assigning different hotkeys.

You might try this code though, just in case it works for you:


[If,[ZBrushInfo,2]<10,
	[IPress,Tool:PolyMesh3D][IPress,Transform:Edit]
	
	[ISetHotkey,Transform:>Z<, ]
	[ISetHotKey,Edit:Tool:Undo,122]

[IUnPress,Transform:Edit][IPress,Tool:SimpleBrush]]
[PD]

Marcus,

Thanks for the responce.
I tried running the commands you suggested but I don’t think it worked.
So the reason why I cant change the hotkey for the z mirror button is because initially it does not exist? Is there a way to do an if statement that dynamically checks to see if something has been pressed?

I am currently trying to edit the defaultzscript so that it creates an editable object and then goes in to edit mode, at which point the z mirror button will be enabled and I will hopefully be able to chnage its hotkey. Do you think this should work and is this a good way to do it, cause it really feels like a hack to me.

Thanks again.

Ricgreen1

I think I now know what the problem is.
It looks like the hotkeys for mirror z and undo get reset when you do certain operations :frowning:

The reason why I so desperately want to remove the z as the hotkey for zmirror is because sometimes when I try to undo something I dont press the control button all the way down, and instead of undoing I turn on z-mirror function. :frowning:

This is what I gave you in the code above - you should put the code in your defaultzscript.

If it doesn’t work it is because it doesn’t work, not because there’s anything wrong with the code. It works fine setting other hotkeys. The ZBrushInfo bit is there to stop the commands being repeated if you reload (or another zscript reloads) the defaultzscript during a ZB session. The hotkeys are set on startup and don’t change during the session.

Instead of using the keyboard shortcut, Ctrl+drag the undo button to a convenient location and then make its position permanent using Ctrl+Shift+I.

Well, All I know is that when I set the undo hotkey to Z
by puttung this code in to the defaultzscript
[ISetHotKey,Edit:Tool:Undo,122]
[PD]When I first run z-brush everything is correct. The undo hotkey is Z, but when I go to the edit mode, the undo hotkey gets reset to Ztrl-Z and the zmirror has the Z hotkey.

So to me it looks like the hotkeys do change in the middle of workflow.:wink:

OK. I expect it is to do with the levels of UNDO.

Here’s a different approach. I can’t really see why you’re so keen on this but this method will do what you want.

Unzip the zip file to your ZStartup\ZPlugs folder …\ZBrush2\ZStartUp\ZPlugs), so that the ToolUndo.zsc is in the ZPLugs folder. You may need to create the ZPlugs folder if you have a new installation of ZBrush.

Restart ZBrush and the hotkey Z will work for the Tool:Undo and not the Z symmetry.

Have fun. :slight_smile: