Created
January 13, 2021 11:22
-
-
Save BurntNail/ac51b8d8cc1d137aa898ed4877454299 to your computer and use it in GitHub Desktop.
Blender Addon to truly taper a face.
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
import bpy | |
from bpy.utils import register_class, unregister_class | |
from bpy.props import FloatProperty | |
class TrueTaperOperator (bpy.types.Operator): | |
bl_idname = "ops.true_taper" | |
bl_label = "True Taper a face" | |
bl_options = {'REGISTER', 'UNDO'} | |
thicc: FloatProperty(name="Taper Size", default=0.1) | |
@classmethod | |
def poll(cls, context): | |
return context.mode == 'EDIT_MESH' | |
def execute(self, context): | |
bpy.ops.mesh.inset(thickness=self.thicc) | |
bpy.ops.mesh.select_more() | |
bpy.ops.mesh.region_to_loop() | |
bpy.ops.mesh.dissolve_mode(use_verts=True) | |
return {'FINISHED'} | |
bl_info = { | |
"name" : "True Taper", | |
"author" : "Jack Maguire, Thanks to Ponte Ryuurui", | |
"blender" : (2, 91, 0), | |
"version" : (1, 0, 0), | |
"location" : "View3D", | |
"category" : "Mesh" | |
} | |
def register (): | |
register_class(TrueTaperOperator) | |
def unregister (): | |
unregister_class(TrueTaperOperator) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment