Is it possible to assign some hotkeys(maybe via script functions)? I would like to have the axis-edit restriction X Y Z accessible via hotkeys.
You can assign Hotkeys/Shortcuts with zscripts. To do this you need to know the “path” of the interface item(s).
To find the path let your cursor hover over an interface item and press and hold Ctrl. A description of the iterface item will pop up and at the bottom of that you will see “Button path:”. For example for the X Axis Selector the path is Transform:Modifiers:X. You can use that in the following code.
<BLOCKQUOTE>quote:</font><HR>
1…
2…
3
[Isethotkey, Transform:Modifiers:X, shift+‘x’]
[Isethotkey, Transform:Modifiers:Y, shift+‘y’]
[Isethotkey, Transform:Modifiers:Z, shift+‘z’] <HR></BLOCKQUOTE>
:large_orange_diamond: 1: Is the Zscript command itself.
:large_orange_diamond: 2: Is the Interface Item Path. Replace with the path of the button you want to change
:large_orange_diamond: 3: Is the shortcut key you want to assign. Replace with Shift/Alt/Ctrl(optional)+'shortcut'
If you copy/paste the above code into a text file (.txt)(Don’t copy the first line ;)) and load it in zbrush (Ctrl+Shift+l), it will assign the X,Y and Z axis selectors a hotkey each. However that would be tedious to do each time you start zbrush.
The first time you run a zscript .txt file it is compiled into a .zsc file. So if your text file was called Hotkey.txt there will now be a Hotkey.zsc in the same location. Copy that file and place it in the Zdata/Zplugs directory. Now when you start Zbrush it will load automatically.
There might be some issues with placing files manually in the Zdata/Zplugs directory so it would be a good idea to take a backup of that directory, or at least keep track of which files you add. I say this as I think the Pixologic guys would have mentioned it if this was the way to do it. Anyway, it works for me.
Matthew: Do you know if a Hotkey editor script is planned for the future. Otherwise I would not mind taking it upon me to write one.
Ah, so that’s how to work some customization. Thanks for the info I’ll give that a try.
Cheers,
Shawn
Thanks for the answer!
Please see Auricks thread below before adding to your Zdata/Zplugs folder. And if possible do not add to it at all, especially if you are getting errors with zbrush. If you must add something then have a backup of the initial /Zdata folder before you add a zscript. Do a test with the original install before reporting a problem.
Better yet, add your hotkey commands to the defaultscript.txt located in the /Zscript foler. That is safe.