Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Maya Polygon Bevel Hard Edges
import pymel.core as pm
def obj_is_poly(obj):
#Evaluates if Object is Polygon
return pm.nodeType(obj) == "mesh"
def bevelHardEdges(obj, offset = 0.5, segments = 1):
if obj_is_poly(obj):
pm.polySelectConstraint( m=3, t=0x8000, sm=1 ) # to get hard edges
pm.polyBevel(offset = offset, segments = segments,autoFit = True, offsetAsFraction = True, fillNgons = True)
def bevelHardEdgesOnSelected():
for item in pm.selected():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment