Skip to content

Instantly share code, notes, and snippets.

@zeffii
Last active January 11, 2016 15:19
Show Gist options
  • Save zeffii/b89f5782f46050dc8aa3 to your computer and use it in GitHub Desktop.
Save zeffii/b89f5782f46050dc8aa3 to your computer and use it in GitHub Desktop.
#Set Edge Crease
class SetOrigin(bpy.types.Operator):
bl_idname = "quickset.edgecrease" # it seems "set.edgecrease" is disallowed, maybe becase 'set' is a python keyword
bl_label = "Set Edge Crease"
bl_options = {'REGISTER'}
def execute(self, context):
bpy.ops.transform.edge_crease(value=0)
bpy.ops.screen.redo_last('INVOKE_DEFAULT')
print('fix')
return{'FINISHED'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment