Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Is there a way to only view outline of the selected object instead of the whole wireframe?

Is there a way to only view outline of the selected object instead of the whole wireframe?

ashutoshkbudhdeo
Participant Participant
3,990 Views
11 Replies
Message 1 of 12

Is there a way to only view outline of the selected object instead of the whole wireframe?

ashutoshkbudhdeo
Participant
Participant

Basically the title. In Blender, the selected object only has an outline around it's silhouette which IMO makes it easier to see, so is there a way I can do it in Maya as right now it feels very cluttered? I can do a little bit of scripting too if required.

Thanks.

0 Likes
Accepted solutions (1)
3,991 Views
11 Replies
Replies (11)
Message 2 of 12

mspeer
Consultant
Consultant

Hi!

 

This is currently not possible.

You could change the transparency on the wireframe

https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-F7824D16-1342-4879-A669-3121D9D3582C

or disable the selection highlighting at all (per panel), but an outline for the selection is currently not an option in Maya.

Message 3 of 12

ashutoshkbudhdeo
Participant
Participant

Thanks for the reply.

Would it be possible to make a material that does this in the viewport, so that I can maybe write a script that switches to that material when an object is selected?

0 Likes
Message 4 of 12

shanemL33YK
Participant
Participant

Not sure if this is possible before maya 2023, but @sepu6 showed me an envvar that will make this work. 

MAYA_VP2_SELECTION_INDICATOR=4

 

Message 5 of 12

ashutoshkbudhdeo
Participant
Participant
Hey thanks for the reply!
I don't know anything about environment variables but after reading the documentation I tried
putenv "MAYA_VP2_SELECTION_INDICATOR" "4"
in mel but it didn't seem to change anything.
Can you please explain how do I set this up?
Thanks!
0 Likes
Message 6 of 12

damaggio
Mentor
Mentor

Thanks guys, actually it worked quite well, it would be nice if this was implemented in Maya and maybe some additional options such as color and outline thickness options.  kudos @sepu6 .😁ObjectOutline.jpg

Message 7 of 12

shanemL33YK
Participant
Participant
Accepted solution

You can not do it at runtime. You need to either set it globally before launching maya, or put it in your maya.env file located in 

C:\Users\<USER>\Documents\maya\<VERSION>\Maya.env

You would want to add a new line to that file (if pre-existing content) and add:

MAYA_VP2_SELECTION_INDICATOR=4

 

Message 8 of 12

ashutoshkbudhdeo
Participant
Participant

mayaSelection.gif

 

It seems to be working, but now I am unable to see the edges/faces in the component mode and I have to toggle wireframe on shaded to view them, but I guess that's the limitation of this.

Thanks for the help!

 

0 Likes
Message 9 of 12

MRENOUX
Participant
Participant

hello, it works but how did you change the color and thickness of the outline? thanks

0 Likes
Message 10 of 12

ashutoshkbudhdeo
Participant
Participant
I had changed my selection colors from Windows -> Settings/Preferences -> Color Settings, and for the thickness of the outline, I think that's because I have anti-aliasing turned on in the viewport
0 Likes
Message 11 of 12

xc278260759
Explorer
Explorer

This feature is really useful, but it currently does not support USD. I hope the developers will improve this feature and add a switch inside Maya.

0 Likes
Message 12 of 12

mamorossi
Participant
Participant

Do you happen to remember which color setting controls the outline in the color preferences? I can't find it for the life of me. 

0 Likes