diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-19 04:49:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-19 04:49:18 +0300 |
commit | 57f376e9465c6b79ebd4409bc30e0b5930dd4140 (patch) | |
tree | 8dc6d5940bc8c39d7979d3b35c19d91f4bb83bf0 /add_mesh_BoltFactory | |
parent | 1338695613af08ae912e6507f0fc89d54577e11a (diff) |
Cleanup: trailing space
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r-- | add_mesh_BoltFactory/Boltfactory.py | 40 | ||||
-rw-r--r-- | add_mesh_BoltFactory/createMesh.py | 2 |
2 files changed, 21 insertions, 21 deletions
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py index aac6d51d..66b0c32f 100644 --- a/add_mesh_BoltFactory/Boltfactory.py +++ b/add_mesh_BoltFactory/Boltfactory.py @@ -44,17 +44,17 @@ class add_mesh_bolt(bpy.types.Operator): bl_label = "Add Bolt" bl_options = {'REGISTER', 'UNDO', 'PRESET'} bl_description = "adds many types of Bolts" - + align_matrix = mathutils.Matrix() MAX_INPUT_NUMBER = 50 - + # edit - Whether to add or update. edit = BoolProperty(name="", description="", default=False, options={'HIDDEN'}) - + #Model Types Model_Type_List = [('bf_Model_Bolt','BOLT','Bolt Model'), ('bf_Model_Nut','NUT','Nut Model')] @@ -63,7 +63,7 @@ class add_mesh_bolt(bpy.types.Operator): description='Choose the type off model you would like', items = Model_Type_List, default = 'bf_Model_Bolt') - #Head Types + #Head Types Model_Type_List = [('bf_Head_Hex','HEX','Hex Head'), ('bf_Head_Cap','CAP','Cap Head'), ('bf_Head_Dome','DOME','Dome Head'), @@ -73,7 +73,7 @@ class add_mesh_bolt(bpy.types.Operator): name='Head', description='Choose the type off Head you would like', items = Model_Type_List, default = 'bf_Head_Hex') - + #Bit Types Bit_Type_List = [('bf_Bit_None','NONE','No Bit Type'), ('bf_Bit_Allen','ALLEN','Allen Bit Type'), @@ -82,7 +82,7 @@ class add_mesh_bolt(bpy.types.Operator): name='Bit Type', description='Choose the type of bit to you would like', items = Bit_Type_List, default = 'bf_Bit_None') - + #Nut Types Nut_Type_List = [('bf_Nut_Hex','HEX','Hex Nut'), ('bf_Nut_Lock','LOCK','Lock Nut')] @@ -90,20 +90,20 @@ class add_mesh_bolt(bpy.types.Operator): name='Nut Type', description='Choose the type of nut you would like', items = Nut_Type_List, default = 'bf_Nut_Hex') - - #Shank Types + + #Shank Types bf_Shank_Length = FloatProperty(attr='bf_Shank_Length', name='Shank Length', default = 0, - min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, + min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, description='Length of the unthreaded shank') - + bf_Shank_Dia = FloatProperty(attr='bf_Shank_Dia', name='Shank Dia', default = 3, min = 0, soft_min = 0,max = MAX_INPUT_NUMBER, description='Diameter of the shank') - + bf_Phillips_Bit_Depth = FloatProperty(attr='bf_Phillips_Bit_Depth', - name='Bit Depth', default = 1.1431535482406616, + name='Bit Depth', default = 1.1431535482406616, min = 0, soft_min = 0,max = MAX_INPUT_NUMBER, description='Depth of the Phillips Bit') @@ -111,12 +111,12 @@ class add_mesh_bolt(bpy.types.Operator): name='Bit Depth', default = 1.5, min = 0, soft_min = 0,max = MAX_INPUT_NUMBER, description='Depth of the Allen Bit') - + bf_Allen_Bit_Flat_Distance = FloatProperty( attr='bf_Allen_Bit_Flat_Distance', name='Flat Dist', default = 2.5, min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, description='Flat Distance of the Allen Bit') - + bf_Hex_Head_Height = FloatProperty( attr='bf_Hex_Head_Height', name='Head Height', default = 2, min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, @@ -156,7 +156,7 @@ class add_mesh_bolt(bpy.types.Operator): name='Bit Dia', default = 1.8199999332427979, min = 0, soft_min = 0,max = MAX_INPUT_NUMBER, description='Diameter of the Philips Bit') - + bf_Thread_Length = FloatProperty( attr='bf_Thread_Length', name='Thread Length', default = 6, min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, @@ -176,7 +176,7 @@ class add_mesh_bolt(bpy.types.Operator): name='Minor Dia', default = 2.6211137771606445, min = 0, soft_min = 0, max = MAX_INPUT_NUMBER, description='Inside diameter of the Thread') - + bf_Crest_Percent = IntProperty( attr='bf_Crest_Percent', name='Crest Percent', default = 10, min = 1, soft_min = 1, max = 90, @@ -186,7 +186,7 @@ class add_mesh_bolt(bpy.types.Operator): name='Root Percent', default = 10, min = 1, soft_min = 1, max = 90, description='Percent of the pitch that makes up the Root') - + bf_Div_Count = IntProperty( attr='bf_Div_Count', name='Div count', default = 36, min = 4, soft_min = 4, max = 4096, @@ -205,7 +205,7 @@ class add_mesh_bolt(bpy.types.Operator): def draw(self, context): layout = self.layout col = layout.column() - + #ENUMS col.prop(self, 'bf_Model_Type') col.separator() @@ -270,11 +270,11 @@ class add_mesh_bolt(bpy.types.Operator): ##### EXECUTE ##### def execute(self, context): - + #print('EXECUTING...') Create_New_Mesh(self, context, self.align_matrix) return {'FINISHED'} - + ##### INVOKE ##### def invoke(self, context, event): #print('\n___________START_____________') diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py index 80291c81..58470c01 100644 --- a/add_mesh_BoltFactory/createMesh.py +++ b/add_mesh_BoltFactory/createMesh.py @@ -1071,7 +1071,7 @@ def Create_Shank_Verts(START_DIA,OUTTER_DIA,LENGTH,Z_LOCATION,DIV_COUNT): def Create_Thread_Start_Verts(INNER_DIA,OUTTER_DIA,PITCH,CREST_PERCENT,ROOT_PERCENT,Z_LOCATION,DIV_COUNT): verts = [] - + INNER_RADIUS = INNER_DIA/2 OUTTER_RADIUS = OUTTER_DIA/2 |