Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
ashutoshkbudhdeo
1127 Views, 9 Replies

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

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.

Labels (4)
9 REPLIES 9
Message 2 of 10
mspeer
in reply to: ashutoshkbudhdeo

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 10
ashutoshkbudhdeo
in reply to: mspeer

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?

Message 4 of 10

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 10

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!
Message 6 of 10
damaggio
in reply to: shanemL33YK

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 10

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 10

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!

 

Message 9 of 10
MRENOUX
in reply to: ashutoshkbudhdeo

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

Message 10 of 10
ashutoshkbudhdeo
in reply to: MRENOUX

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

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report