i added several hotkeys to my maya setup to make the production of my animation short here at vfs easier:
- ctrl+1: toggle allow/ prevent back face selection (back culling on/ off)
- ctrl+2: toggle xray selected object
- ctrl+enter: toggle isolation of selection
- ctrl+shift+r: render (ScriptEditor)
- ctrl+shift+alt+e: script editor (RenderIntoNewWindow)
while the first ones are just using the one liners i mentioned lately the ‘toggle isolation’ procedure is a bit a longer script, which i found lately in a great cgtalk thread lately (thanks to kevin edzenga):
$check=`isolateSelect -q -state modelPanel4`;
if ($check==1){
enableIsolateSelect modelPanel4 0;
isolateSelect -state 0 modelPanel4;
}else{
enableIsolateSelect modelPanel4 1;
isolateSelect -state 1 modelPanel4;
}
the xray-ing of a selected is so helpful since the default xray setting (shading > x-ray) can just be used for all objects in the scene, which is not always handy. i found a perfect script for my needs on highend3d called “xray toggle object“.
Hey, my name is Kevin Edzenga, I sumbled upon this post of my script from another website. Since that was posted I wrote a better version, which selects the objects you isolated after toggling out of the isolation so that you can make a new object and have the isolation still selected so you can add the new object to the isolation really fast.
string $panel=`getPanel -wf`;
int $isolateCheck=`isolateSelect -q -state $panel`;
if ($isolateCheck==0){
string $selectCheck[]=`ls -sl`;
if (size($selectCheck) != 0 ){
enableIsolateSelect $panel 1;
isolateSelect -state 1 $panel;
}
}else{
select -add (`isolateSelect -q -vo $panel`);
enableIsolateSelect $panel 0;
isolateSelect -state 0 $panel;
}
great comment, thanks a lot, kevin!