My college programmed the Alt+1 as a hotkey to toggle the x-ray on and off in Maya. They also programmed the Alt+2 as a hotkey to toggle the wireframe on shaded on and off. This was very helpful when modeling.
Now that I have my own copy of Maya, I do not have those hotkeys programmed in because it is not a Maya default. I’ve copied and pasted from the script editor this line of code:
modelEditor -e -xray 1 modelPane14;
// Result: modelPane14 //
into the hotkeys window (window>settings/preferences>hotkeys…) and set it to Alt+1. After saving, the new hotkey worked to turn the x-ray command on. I have no clue what line of code I need to make x-ray toggle on and off using just one hotkey. I’ve experimented, but my syntax is off.
What lines of code should I input into the hotkey editor to toggle x-ray on/off and wireframe on shaded on/off?