Skip to content

Instantly share code, notes, and snippets.

@rondreas
Created February 13, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rondreas/961fbe4032e4315187f701c2443ec380 to your computer and use it in GitHub Desktop.
Save rondreas/961fbe4032e4315187f701c2443ec380 to your computer and use it in GitHub Desktop.
Cut Hard Edges on selected object
import pymel.core as pm
# Get all non smooth edges, and cut their UVs
hard_edges = [e for e in pm.selected()[0].e if not e.isSmooth()]
pm.polyMapCut(hard_edges)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment