Toggle Visibility PolyMeshes ( this is the same for nurbs surfaces, nurbs curves... ):
$currentPanel = `getPanel -withFocus`;
string $panelType = `getPanel -to $currentPanel`; if ($panelType == "modelPanel") {
modelEditor -e -polymeshes ( !`modelEditor -q -polymeshes $currentPanel` ) $currentPanel; } ;
Look throught selected:
lookThroughSelected 0 modelPanel4;
Wireframe on shaded:
$currentPanel = `getPanel -withFocus`;
string $panelType = `getPanel -to $currentPanel`; if ($panelType == "modelPanel") {
modelEditor -e -wos ( !`modelEditor -q -wos $currentPanel` ) $currentPanel; }
Isolate selection:
$currentPanel = `getPanel -withFocus`;
$state = `isolateSelect -q -state $currentPanel`;
if ($state == "0"){
enableIsolateSelect $currentPanel 1; }
else{
enableIsolateSelect $currentPanel 0;}
Set transparensy of material of selected object to 0.5:
string $sel[] = `ls -sl`;
hyperShade -smn;
setAttr ($sel[1] + ".transparency") 0.5 0.5 0.5;
select $sel[0];
Show Input and Output connections of selection in the Hypershade:
hyperShadePanelGraphCommand("hyperShadePanel1", "showUpAndDownstream");
Open attribute editor of material of the selected object:
string $sel[] = `ls -sl`;
showSG $sel[0];
Toggle the view to perspective (wireframe):
viewSet -fit -ff 0.8 -krs true -an 1 -p ;
DisplayShaded;
Toggle the view to Top (wireframe):
viewSet -fit -ff 0.8 -krs true -an 1 -t ;
DisplayWireframe;