Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Keith <aaroninusa@gmail.com>2020-04-16 06:13:38 +0300
committerAaron Keith <aaroninusa@gmail.com>2020-04-16 06:13:51 +0300
commit32bf6e71b60e66eef40534b3e072b2681f05c899 (patch)
tree6c0300db1c623b5a7dc77ffd612eba9cb62972f6 /add_mesh_BoltFactory/Boltfactory.py
parentcc1a2f5af8681158905be040099ea14bb814b331 (diff)
Added Torx bit type
Diffstat (limited to 'add_mesh_BoltFactory/Boltfactory.py')
-rw-r--r--add_mesh_BoltFactory/Boltfactory.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py
index b3d3b108..4ade3da0 100644
--- a/add_mesh_BoltFactory/Boltfactory.py
+++ b/add_mesh_BoltFactory/Boltfactory.py
@@ -73,6 +73,7 @@ class add_mesh_bolt(Operator, AddObjectHelper):
# Bit Types
Bit_Type_List = [('bf_Bit_None', 'NONE', 'No Bit Type'),
('bf_Bit_Allen', 'ALLEN', 'Allen Bit Type'),
+ ('bf_Bit_Torx', 'TORX', 'Torx Bit Type'),
('bf_Bit_Philips', 'PHILLIPS', 'Phillips Bit Type')]
bf_Bit_Type: EnumProperty(
attr='bf_Bit_Type',
@@ -129,6 +130,30 @@ class add_mesh_bolt(Operator, AddObjectHelper):
description='Flat Distance of the Allen Bit',
unit='LENGTH',
)
+ # Torx Size Types
+ Torx_Size_Type_List = [('bf_Torx_T10', 'T10', 'T10'),
+ ('bf_Torx_T20', 'T20', 'T20'),
+ ('bf_Torx_T25', 'T25', 'T25'),
+ ('bf_Torx_T30', 'T30', 'T30'),
+ ('bf_Torx_T40', 'T40', 'T40'),
+ ('bf_Torx_T50', 'T50', 'T50'),
+ ('bf_Torx_T55', 'T55', 'T55'),
+ ]
+
+ bf_Torx_Size_Type: EnumProperty(
+ attr='bf_Torx_Size_Type',
+ name='Torx Size',
+ description='Size of the Torx Bit',
+ items=Torx_Size_Type_List, default='bf_Torx_T20'
+ )
+ bf_Torx_Bit_Depth: FloatProperty(
+ attr='bf_Torx_Bit_Depth',
+ name='Bit Depth', default=1.5,
+ min=0, soft_min=0,
+ max=MAX_INPUT_NUMBER,
+ description='Depth of the Torx Bit',
+ unit='LENGTH',
+ )
bf_Hex_Head_Height: FloatProperty(
attr='bf_Hex_Head_Height',
name='Head Height', default=2,
@@ -434,6 +459,8 @@ def BoltParameters():
"bf_Phillips_Bit_Depth",
"bf_Allen_Bit_Depth",
"bf_Allen_Bit_Flat_Distance",
+ "bf_Torx_Bit_Depth",
+ "bf_Torx_Size_Type",
"bf_Hex_Head_Height",
"bf_Hex_Head_Flat_Distance",
"bf_CounterSink_Head_Dia",