Last active
January 11, 2016 15:19
-
-
Save zeffii/b89f5782f46050dc8aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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