Script:
string $panel = `getPanel -wf`;
if ( `modelEditor -ex $panel` )
modelEditor -e -xray ( !`modelEditor -q -xray $panel` ) $panel;
In this video:
1. Fixing selection of components through mesh.
2. Creating shortcut key for x-ray mode.
In maya, when selecting components using marquee select, it will select both front and backside components of the mesh. This is many time not ideal as we have to go and deselect part that we don't want. So, in this video, I will show how to change that.