How to setup shortcut to toggle joint xray in Maya

138 views Asked by At

Is there a MEL command to toggle the "joint xray" mode in the viewport? (so that I can set it as a shortcut)

enter image description here

1

There are 1 answers

0
arkan On
int $v = `modelEditor -q -jointXray modelPanel4`;
modelEditor -e -jointXray (!$v) modelPanel4;

Menu: Windows -> Settings -> HotKey Editor

Unroll: "Edit HotKeys for:" -> Custom Scripts.

On the right panel go to the tab Runtime Command Editor to create the script command. Then associate the shortcut on the left panel.

enter image description here