Hard Edge Selector v2
CAD$0+
CAD$0+
https://schema.org/InStock
cad
Ricardo Rioja
Thanks to the suggestions I’ve received, here are the changes I’ve implemented so far:
- Better threshold.
- Dynamic edge tracking: The script now stores and compares vertex positions in world space, making it resilient to topology changes.
- Improved edge validation: If you select multiple objects, the script will only process valid meshes and skip non-polygonal elements.
- Optimized selection: The script can recall previous edge selections and keep them intact, even after modifying geometry.
- Cylinder compatibility.
How to Use the Hard Edge Selector Script in Maya
1. Running the Script from the Script Editor
- Open Maya and go to Windows > General Editors > Script Editor.
- Paste the full script into the Python tab.
- Select all the code and press Ctrl + Enter (Windows) or Cmd + Enter (Mac) to execute it.
- To call the function anytime, type the following into the Python tab:
select_outer_edges()
2. Saving the Script in Maya’s Scripts Folder
- Copy the full script and save it as a
.py
file (e.g.,hard_edge_selector.py
). - Place the file in your Maya scripts folder.
- On Windows:
Documents\maya\<version>\scripts
- On Mac:
~/Library/Preferences/Autodesk/maya/<version>/scripts
- On Linux:
~/maya/<version>/scripts
- On Windows:
- In Maya, load the script by typing the following into the Script Editor (or any Python-enabled window):
import hard_edge_selector hard_edge_selector.select_outer_edges()
- To make it even easier, you can create a shelf button or hotkey using the
import
and function call lines above.
3. Assigning the Script to a Shelf Button
- Right-click on any shelf (or create a new one) and select Add Script.
- Paste the following code into the Python section:
import hard_edge_selector hard_edge_selector.select_outer_edges()
- Assign a name and optional icon, then click Save.
4. Assigning the Script to a Hotkey
- Go to Windows > Settings/Preferences > Hotkey Editor.
- Click Custom Scripts and create a new command.
- Paste the following code into the Python section:
import hard_edge_selector hard_edge_selector.select_outer_edges()
- Assign a hotkey (e.g., Alt + E) and click Save and Close.
With these options, you can integrate the script seamlessly into your Maya workflow and run it however you prefer. If you have any questions, feel free to reach out. Happy modeling!
Hard Edge Selector v2 script
Size
2.96 KB
Add to wishlist
30-day money back guarantee