How do I select all hard edges?

Anonymous

How do I select all hard edges?

Anonymous
Not applicable

I want to bevel all my hard edges, I don't want to pick each hard edge one by one, I want to select all the hard edges at once. In 3ds Max its a simple button and you can select all hard edges. Does Maya have this button? 

Reply
Accepted solutions (2)
51,431 Views
11 Replies
Replies (11)

damaggio
Mentor
Mentor

I use the "Facer " script for that.....and it has a lot of other helpful  commands like quadrangulate.

Give it a try Chuck.

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

Easy with MEL (also available for Python):

 

polySelectConstraint -m 3 -t 0x8000 -sm 1;

 

 

_sebastian_f
Advisor
Advisor
Accepted solution
or you use the "select > use constraints" window.

Anonymous
Not applicable

LOL wait a minute I didnt even get a chance to try this out yet and its been marked as solved?

Anonymous
Not applicable

Hey all thanks for all your replies, much appreciated.

 

@damaggio  I tried the Facer script, I couldn't find where to select just the hard edges but did find some other really cool stuff in there.

 

@mspeer   That little script works like a charm, I made a button

 

@_sebastian_f  That's interesting, I did not know about all that cool stuff under the use constraints. 

 

Thanks again

0 Likes

Anonymous
Not applicable

Might I suggest, for the accepted script answer, that you add the line:
polySelectConstraint -m 0 -t 0x8000 -sm 0;
under the first one - without it, all future selections are constrained to only hard edges as well, and you have to reset it manually. I eventually fixed it by adding this line.

jayantbhatt07
Advocate
Advocate

Hi, I hope it would be helpful. I figured it out and it's working with Maya 2017 also.

 

ConvertSelectionToEdges;
polySelectConstraint -m 3 -t 0x8000 -sm 1; // to get hard edges
resetPolySelectConstraint;

 

You can use this command or here is the new link for Maya 2018 and 2019.

 

https://lesterbanks.com/2019/05/free-script-automatically-finds-hard-edges-in-maya/

brunogf13
Enthusiast
Enthusiast
Hey @jayntbhatt07! Thanks for that! Your MEL script works really well! Better then the one from the link... I tried that one first but then realized that after applying that script to an object, my Target Weld tool stopped working - tested it a few times and it was indeed after using that script (don't know if any other tool would have given me problems, but that one for sure stopped working!). Then I tried your script, and all seems to work fine. So thank you!

jayantbhatt07
Advocate
Advocate

Hi thanks your kind words here is my gumroad link if you are interest :). I made some small scripts. ( https://gumroad.com/products )

wamborfautodesk
Explorer
Explorer
This does something weird tho... after I use it, and there's one edge in a loop that isn't hard, I can only select every hard edge, but not at all any other edges .. eternally it seems.. how to use it correctly then or turn that off ?

anatoliiCD3WB
Observer
Observer

hey, Autodesk!
What about your suggestion?
Where are your script for this? Tool? Plugin? Addon?
Why do you just not implement this by yourself?

0 Likes