cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select highlight

Select highlight

Selecting an object without wireframe visible. 3ds max has a nice feature to display outline around object rather than its wireframe on selection. 

 

At the moment in maya when you disable selection highlight, you cant visualise what is selected in the viewport. 

9 Comments
1006138663
Advocate

This function is available and can be set in preferences

ahmed.fawaz7h8fs
Contributor
Please elaborate
ahmed.fawaz7h8fs
Contributor

For anyone interested this is my solution which works well for me.

F2 display objects with wireframe and shaded faces. F3 disables wireframe on selection and drops the shaded face colour to something easier to see through. 

 

F2 hotkey:

displayPref -wsa "full";

displayColor -c -active polyFace 20;

 

F3 hotkey:

displayColor -c -active polyFace 01;

displayPref -wsa "none";

1006138663
Advocate

//maya 2019.2
global int $CYJ_Display_Toon_Job ;
if(catchQuiet (`scriptJob -k $CYJ_Display_Toon_Job -f`) ){};
$CYJ_Display_Toon_Job = `scriptJob -e "SelectionChanged" "CYJ_Display_Toon_Do" -cu 1 -protected`;


global proc CYJ_Display_Toon_Do()
{
if(catchQuiet (`CYJ_Display_Toon`) ){};
}

global proc CYJ_Display_Toon()
{
string $sel[] = `ls -sl`;
string $Toon = "CYJ_toon";

if(size($sel)>0 )
{
if (`objExists $Toon`){delete $Toon ;}
AssignNewPfxToon;
setAttr ".creaseLines" 0;
setAttr ".intersectionLines" 1;
setAttr ".lineWidth" 2;
setAttr ".intersectionBreakAngle" 0;
setAttr ".profileColor" -type double3 1 0.75 0.3 ;
setAttr ".profileLineWidth" 0.002;
setAttr ".intersectionColor" -type double3 .5 1 1 ;
setAttr ".intersectionLineWidth" 0.002;
setAttr ".profileBreakAngle" 0;
setAttr ".screenspaceWidth" 1;
setAttr ".template" 1;
pickWalk -d up;
rename "CYJ_toon";
setAttr ".hiddenInOutliner" true;
}
else
{
delete $Toon ;
}
select $sel;
}

 

1006138663
Advocate

I made an interesting attempt. Run the above code, maybe it's what you want. Running the second line alone will remove the program

1006138663
Advocate

//maya 2020 maya 2022
global int $CYJ_Display_Toon_Job ;
if(catchQuiet (`scriptJob -k $CYJ_Display_Toon_Job -f`) ){};
$CYJ_Display_Toon_Job = `scriptJob -e "SelectionChanged" "CYJ_Display_Toon_Do" -cu 1 -protected`;


global proc CYJ_Display_Toon_Do()
{
if(catchQuiet (`CYJ_Display_Toon`) ){};
}

global proc CYJ_Display_Toon()
{
string $sel[] = `ls -sl`;
string $Toon = "CYJ_toon";
string $layer = $Toon+"_Layer" ;

if(size($sel)>0 )
{
if (`objExists $Toon`){delete $Toon $layer;}
AssignNewPfxToon;
setAttr ".creaseLines" 0;
setAttr ".intersectionLines" 1;
setAttr ".lineWidth" 2;
setAttr ".intersectionBreakAngle" 0;
setAttr ".profileColor" -type double3 0.7 0.5 0.2 ;
setAttr ".profileLineWidth" 0.002;
setAttr ".intersectionColor" -type double3 .2 6 6 ;
setAttr ".intersectionLineWidth" 0.002;
setAttr ".profileBreakAngle" 0;
setAttr ".screenspaceWidth" 1;
//setAttr ".template" 1;
pickWalk -d up;
rename $Toon;
setAttr ".hiddenInOutliner" true;
createDisplayLayer -n $layer -number 1 ;
layerEditorLayerButtonTypeChange CYJ_toon_Layer;
layerEditorLayerButtonTypeChange CYJ_toon_Layer;
}
else
{
delete $Toon $layer;
}
select $sel;
}

 

1006138663
Advocate

捕获.PNG

 

where can this be set in preferences so that I get only the outline and not the wireframe on shaded?

Also , this should be the default behavior

1006138663
Advocate

@Kranos_Orphydian  I didn't find this setting, so I implemented it through Mel. But the efficiency is relatively low

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea