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:
authorNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
committerNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
commitaeabdc02a83a976b2f594cd66873c6d2b537e669 (patch)
tree3ac5922be25219ab666aae4b8d04002bce2e70a6 /mesh_extra_tools
parentba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff)
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to use the new annotation format (colon instead of equals) for assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'mesh_extra_tools')
-rw-r--r--mesh_extra_tools/__init__.py14
-rw-r--r--mesh_extra_tools/face_inset_fillet.py14
-rw-r--r--mesh_extra_tools/mesh_check.py16
-rw-r--r--mesh_extra_tools/mesh_cut_faces.py10
-rw-r--r--mesh_extra_tools/mesh_edge_roundifier.py58
-rw-r--r--mesh_extra_tools/mesh_edges_floor_plan.py22
-rw-r--r--mesh_extra_tools/mesh_edges_length.py12
-rw-r--r--mesh_extra_tools/mesh_edgetools.py68
-rw-r--r--mesh_extra_tools/mesh_fastloop.py2
-rw-r--r--mesh_extra_tools/mesh_filletplus.py10
-rw-r--r--mesh_extra_tools/mesh_help.py4
-rw-r--r--mesh_extra_tools/mesh_mextrude_plus.py42
-rw-r--r--mesh_extra_tools/mesh_offset_edges.py30
-rw-r--r--mesh_extra_tools/mesh_pen_tool.py14
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_index_select.py10
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py8
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py10
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py8
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py4
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py4
-rw-r--r--mesh_extra_tools/mesh_vertex_chamfer.py8
-rw-r--r--mesh_extra_tools/pkhg_faces.py54
-rw-r--r--mesh_extra_tools/random_vertices.py4
-rw-r--r--mesh_extra_tools/split_solidify.py12
-rw-r--r--mesh_extra_tools/vertex_align.py2
25 files changed, 220 insertions, 220 deletions
diff --git a/mesh_extra_tools/__init__.py b/mesh_extra_tools/__init__.py
index 8c7ec764..3685079e 100644
--- a/mesh_extra_tools/__init__.py
+++ b/mesh_extra_tools/__init__.py
@@ -745,7 +745,7 @@ class MeshExtraToolsSceneProps(PropertyGroup):
size=4,
)
# Vertex align
- vert_align_store_axis = FloatVectorProperty(
+ vert_align_store_axis: FloatVectorProperty(
name="Define Custom Coordinates",
description="Store the values of coordinates, for repeated use\n"
"as a starting point",
@@ -755,12 +755,12 @@ class MeshExtraToolsSceneProps(PropertyGroup):
subtype='XYZ',
precision=3
)
- vert_align_use_stored = BoolProperty(
+ vert_align_use_stored: BoolProperty(
name="Use Stored Coordinates",
description="Use starting point coordinates for alignment",
default=False
)
- vert_align_to = EnumProperty(
+ vert_align_to: EnumProperty(
items=(('vertex', "Original vertex",
"Use the stored vertex coordinates for aligning"),
('coordinates', "Custom coordinates",
@@ -775,14 +775,14 @@ class MeshExtraToolsSceneProps(PropertyGroup):
size=3,
)
# Mesh Info select
- mesh_info_show = BoolProperty(
+ mesh_info_show: BoolProperty(
name="Show Face Info",
description="Display the Object's Face Count information\n"
"Note: it can have some performance impact on dense meshes\n"
"Leave it closed if not needed or set the Delay to a higher value",
default=False
)
- mesh_info_delay = FloatProperty(
+ mesh_info_delay: FloatProperty(
name="Delay",
description="Set the Update time Delay in seconds\n"
"Set to zero to update with the UI refresh\n"
@@ -799,12 +799,12 @@ class MeshExtraToolsSceneProps(PropertyGroup):
class mesh_extra_tools_pref(AddonPreferences):
bl_idname = __name__
- show_info = BoolProperty(
+ show_info: BoolProperty(
name="Info",
default=False,
description="Some general information about the add-on",
)
- show_shortcuts = BoolProperty(
+ show_shortcuts: BoolProperty(
name="Hot Keys",
default=False,
description="List of the shortcuts used for the included various tools",
diff --git a/mesh_extra_tools/face_inset_fillet.py b/mesh_extra_tools/face_inset_fillet.py
index eb3e34c2..b6d38d59 100644
--- a/mesh_extra_tools/face_inset_fillet.py
+++ b/mesh_extra_tools/face_inset_fillet.py
@@ -224,7 +224,7 @@ class MESH_OT_face_inset_fillet(Operator):
bl_options = {"REGISTER", "UNDO"}
# inset amount
- inset_amount = FloatProperty(
+ inset_amount: FloatProperty(
name="Inset amount",
description="Define the size of the Inset relative to the selection",
default=0.04,
@@ -233,7 +233,7 @@ class MESH_OT_face_inset_fillet(Operator):
precision=3
)
# number of sides
- number_of_sides = IntProperty(
+ number_of_sides: IntProperty(
name="Number of sides",
description="Define the roundness of the corners by specifying\n"
"the subdivision count",
@@ -241,7 +241,7 @@ class MESH_OT_face_inset_fillet(Operator):
min=1, max=100,
step=1
)
- distance = FloatProperty(
+ distance: FloatProperty(
name="",
description="Use distance or radius for corners' size calculation",
default=0.04,
@@ -249,24 +249,24 @@ class MESH_OT_face_inset_fillet(Operator):
step=1,
precision=3
)
- out = BoolProperty(
+ out: BoolProperty(
name="Outside",
description="Inset the Faces outwards in relation to the selection\n"
"Note: depending on the geometry, can give unsatisfactory results",
default=False
)
- radius = BoolProperty(
+ radius: BoolProperty(
name="Radius",
description="Use radius for corners' size calculation",
default=False
)
- type_enum = EnumProperty(
+ type_enum: EnumProperty(
items=(('opt0', "N-gon", "N-gon corners - Keep the corner Faces uncut"),
('opt1', "Triangle", "Triangulate corners")),
name="Corner Type",
default="opt0"
)
- kp = BoolProperty(
+ kp: BoolProperty(
name="Keep faces",
description="Do not delete the inside Faces\n"
"Only available if the Out option is checked",
diff --git a/mesh_extra_tools/mesh_check.py b/mesh_extra_tools/mesh_check.py
index c3d42837..2acfe184 100644
--- a/mesh_extra_tools/mesh_check.py
+++ b/mesh_extra_tools/mesh_check.py
@@ -253,7 +253,7 @@ class FaceTypeSelect(Operator):
bl_description = "Select Triangles and / or Ngons on the Active Object"
bl_options = {'REGISTER', 'UNDO'}
- face_type = EnumProperty(
+ face_type: EnumProperty(
name="Face Type",
items=(('tris', "Tris", "Colorize Triangles in the Mesh"),
('ngons', "Ngons", "Colorize Ngons in the Mesh")),
@@ -278,19 +278,19 @@ class FaceTypeSelect(Operator):
class MeshCheckCollectionGroup(PropertyGroup):
- mesh_check_use = BoolProperty(
+ mesh_check_use: BoolProperty(
name="Mesh Check",
description="Display Mesh Check options",
default=False,
update=updateBGLData
)
- display_faces = BoolProperty(
+ display_faces: BoolProperty(
name="Display Faces",
description="Use BGL to display Ngons and Tris of the mesh",
default=False,
update=updateBGLData
)
- edge_width = FloatProperty(
+ edge_width: FloatProperty(
name="Width",
description="Drawn Edges width in pixels",
min=1.0,
@@ -299,13 +299,13 @@ class MeshCheckCollectionGroup(PropertyGroup):
subtype='PIXEL',
update=updateBGLData
)
- finer_lines_behind_use = BoolProperty(
+ finer_lines_behind_use: BoolProperty(
name="Finer Lines behind",
description="Display partially hidden edges finer in non-occlude mode",
default=True,
update=updateBGLData
)
- custom_tri_color = FloatVectorProperty(
+ custom_tri_color: FloatVectorProperty(
name="Tri Color",
description="Custom color for the Triangles",
min=0.0,
@@ -315,7 +315,7 @@ class MeshCheckCollectionGroup(PropertyGroup):
subtype='COLOR',
update=updateBGLData
)
- custom_ngons_color = FloatVectorProperty(
+ custom_ngons_color: FloatVectorProperty(
name="Ngons Color",
description="Custom color for the Ngons",
min=0.0,
@@ -325,7 +325,7 @@ class MeshCheckCollectionGroup(PropertyGroup):
subtype='COLOR',
update=updateBGLData
)
- face_opacity = FloatProperty(
+ face_opacity: FloatProperty(
name="Face Opacity",
description="Opacity of the color for the face",
min=0.0,
diff --git a/mesh_extra_tools/mesh_cut_faces.py b/mesh_extra_tools/mesh_cut_faces.py
index cd710a07..195d491f 100644
--- a/mesh_extra_tools/mesh_cut_faces.py
+++ b/mesh_extra_tools/mesh_cut_faces.py
@@ -118,7 +118,7 @@ class MESH_xOT_deselect_boundary(Operator):
"so the tool will not have results")
bl_options = {'REGISTER', 'UNDO'}
- keep_cap_edges = BoolProperty(
+ keep_cap_edges: BoolProperty(
name="Keep Cap Edges",
description="Keep quad strip cap edges selected",
default=False
@@ -164,19 +164,19 @@ class MESH_xOT_cut_faces(Operator):
SUBD_FAN = 2
SUBD_STRAIGHT_CUT = 3
- num_cuts = IntProperty(
+ num_cuts: IntProperty(
name="Number of Cuts",
default=1,
min=1,
max=100,
subtype='UNSIGNED'
)
- use_single_edge = BoolProperty(
+ use_single_edge: BoolProperty(
name="Quad/Tri Mode",
description="Cut boundary faces",
default=False
)
- corner_type = EnumProperty(
+ corner_type: EnumProperty(
items=[('SUBD_INNERVERT', "Inner Vert", ""),
('SUBD_PATH', "Path", ""),
('SUBD_FAN', "Fan", ""),
@@ -186,7 +186,7 @@ class MESH_xOT_cut_faces(Operator):
description="How to subdivide quad corners",
default='SUBD_STRAIGHT_CUT'
)
- use_grid_fill = BoolProperty(
+ use_grid_fill: BoolProperty(
name="Use Grid Fill",
description="Fill fully enclosed faces with a grid",
default=True
diff --git a/mesh_extra_tools/mesh_edge_roundifier.py b/mesh_extra_tools/mesh_edge_roundifier.py
index 609d0df7..0ab20a69 100644
--- a/mesh_extra_tools/mesh_edge_roundifier.py
+++ b/mesh_extra_tools/mesh_edge_roundifier.py
@@ -264,7 +264,7 @@ class EdgeRoundifier(Operator):
threshold = 0.0005
obj = None
- edgeScaleFactor = FloatProperty(
+ edgeScaleFactor: FloatProperty(
name="",
description="Set the Factor of scaling",
default=1.0,
@@ -272,7 +272,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=5
)
- r = FloatProperty(
+ r: FloatProperty(
name="",
description="User Defined arc steepness by a Radius\n"
"Enabled only if Entry mode is set to Radius\n",
@@ -281,7 +281,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=3
)
- a = FloatProperty(
+ a: FloatProperty(
name="",
description="User defined arc steepness calculated from an Angle\n"
"Enabled only if Entry mode is set to Angle and\n"
@@ -291,74 +291,74 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- n = IntProperty(
+ n: IntProperty(
name="",
description="Arc subdivision level",
default=4,
min=1, max=100,
step=1
)
- flip = BoolProperty(
+ flip: BoolProperty(
name="Flip",
description="If True, flip the side of the selected edges where the arcs are drawn",
default=False
)
- invertAngle = BoolProperty(
+ invertAngle: BoolProperty(
name="Invert",
description="If True, uses an inverted angle to draw the arc (360 degrees - angle)",
default=False
)
- fullCircles = BoolProperty(
+ fullCircles: BoolProperty(
name="Circles",
description="If True, uses an angle of 360 degrees to draw the arcs",
default=False
)
- bothSides = BoolProperty(
+ bothSides: BoolProperty(
name="Both sides",
description="If True, draw arcs on both sides of the selected edges",
default=False
)
- drawArcCenters = BoolProperty(
+ drawArcCenters: BoolProperty(
name="Centers",
description="If True, draws a vertex for each spin center",
default=False
)
- removeEdges = BoolProperty(
+ removeEdges: BoolProperty(
name="Edges",
description="If True removes the Original selected edges",
default=False
)
- removeScaledEdges = BoolProperty(
+ removeScaledEdges: BoolProperty(
name="Scaled edges",
description="If True removes the Scaled edges (not part of the arcs)",
default=False
)
- connectArcWithEdge = BoolProperty(
+ connectArcWithEdge: BoolProperty(
name="Arc - Edge",
description="Connect Arcs to Edges",
default=False
)
- connectArcs = BoolProperty(
+ connectArcs: BoolProperty(
name="Arcs",
description="Connect subsequent Arcs",
default=False
)
- connectScaledAndBase = BoolProperty(
+ connectScaledAndBase: BoolProperty(
name="Scaled - Base Edge",
description="Connect Scaled to Base Edge",
default=False
)
- connectArcsFlip = BoolProperty(
+ connectArcsFlip: BoolProperty(
name="Flip Arcs",
description="Flip the connection of subsequent Arcs",
default=False
)
- connectArcWithEdgeFlip = BoolProperty(
+ connectArcWithEdgeFlip: BoolProperty(
name="Flip Arc - Edge",
description="Flip the connection of the Arcs to Edges",
default=False
)
- axisAngle = FloatProperty(
+ axisAngle: FloatProperty(
name="",
description="Rotate Arc around the perpendicular axis",
default=0.0,
@@ -366,7 +366,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- edgeAngle = FloatProperty(
+ edgeAngle: FloatProperty(
name="",
description="Rotate Arc around the Edge (Edge acts like as the axis)",
default=0.0,
@@ -374,7 +374,7 @@ class EdgeRoundifier(Operator):
step=0.5,
precision=1
)
- offset = FloatProperty(
+ offset: FloatProperty(
name="",
description="Offset Arc perpendicular the Edge",
default=0.0,
@@ -382,7 +382,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=5
)
- offset2 = FloatProperty(
+ offset2: FloatProperty(
name="",
description="Offset Arc in parallel to the Edge",
default=0.0,
@@ -390,7 +390,7 @@ class EdgeRoundifier(Operator):
step=0.1,
precision=5
)
- ellipticFactor = FloatProperty(
+ ellipticFactor: FloatProperty(
name="",
description="Make Arc elliptic",
default=0.0,
@@ -399,7 +399,7 @@ class EdgeRoundifier(Operator):
precision=5
)
workModeItems = [("Normal", "Normal", ""), ("Reset", "Reset", "")]
- workMode = EnumProperty(
+ workMode: EnumProperty(
items=workModeItems,
name="",
default='Normal',
@@ -407,7 +407,7 @@ class EdgeRoundifier(Operator):
"Reset - changes back the parameters to their default values"
)
entryModeItems = [("Radius", "Radius", ""), ("Angle", "Angle", "")]
- entryMode = EnumProperty(
+ entryMode: EnumProperty(
items=entryModeItems,
name="",
default='Angle',
@@ -418,14 +418,14 @@ class EdgeRoundifier(Operator):
("Spin", "Spin", ""), ("V1", "V1", ""),
("Edge", "Edge", ""), ("V2", "V2", "")
]
- rotateCenter = EnumProperty(
+ rotateCenter: EnumProperty(
items=rotateCenterItems,
name="",
default='Edge',
description="Rotate center for spin axis rotate"
)
arcModeItems = [("FullEdgeArc", "Full", "Full"), ('HalfEdgeArc', "Half", "Half")]
- arcMode = EnumProperty(
+ arcMode: EnumProperty(
items=arcModeItems,
name="",
default='FullEdgeArc',
@@ -437,7 +437,7 @@ class EdgeRoundifier(Operator):
('72', "72", "PentagonCircle (5 sides)"), ('60', "60", "HexagonCircle (6 sides)"),
('45', "45", "OctagonCircle (8 sides)"), ('30', "30", "DodecagonCircle (12 sides)")
]
- angleEnum = EnumProperty(
+ angleEnum: EnumProperty(
items=angleItems,
name="",
default='180',
@@ -445,7 +445,7 @@ class EdgeRoundifier(Operator):
)
refItems = [('ORG', "Origin", "Use Origin Location"), ('CUR', "3D Cursor", "Use 3DCursor Location"),
('EDG', "Edge", "Use Individual Edge Reference")]
- referenceLocation = EnumProperty(
+ referenceLocation: EnumProperty(
items=refItems,
name="",
default='ORG',
@@ -456,7 +456,7 @@ class EdgeRoundifier(Operator):
(YZ, "YZ", "YZ Plane (X=0)"),
(XZ, "XZ", "XZ Plane (Y=0)")
]
- planeEnum = EnumProperty(
+ planeEnum: EnumProperty(
items=planeItems,
name="",
default='XY',
@@ -467,7 +467,7 @@ class EdgeRoundifier(Operator):
('CENTER', "Center", "Center of the Edge"),
('V2', "V2", "v2 - Second Edge's Vertex")
]
- edgeScaleCenterEnum = EnumProperty(
+ edgeScaleCenterEnum: EnumProperty(
items=edgeScaleCenterItems,
name="Edge scale center",
default='CENTER',
diff --git a/mesh_extra_tools/mesh_edges_floor_plan.py b/mesh_extra_tools/mesh_edges_floor_plan.py
index bc4b1610..1804c79a 100644
--- a/mesh_extra_tools/mesh_edges_floor_plan.py
+++ b/mesh_extra_tools/mesh_edges_floor_plan.py
@@ -55,24 +55,24 @@ class MESH_OT_edges_floor_plan(Operator):
bl_description = "Top View, Extrude Flat Along Edges"
bl_options = {'REGISTER', 'UNDO'}
- wid = FloatProperty(
+ wid: FloatProperty(
name="Wall width:",
description="Set the width of the generated walls\n",
default=0.1,
min=0.001, max=30000
)
- depth = FloatProperty(
+ depth: FloatProperty(
name="Inner height:",
description="Set the height of the inner wall edges",
default=0.0,
min=0, max=10
)
- connect_ends = BoolProperty(
+ connect_ends: BoolProperty(
name="Connect Ends",
description="Connect the ends of the boundary Edge loops",
default=False
)
- repeat_cleanup = IntProperty(
+ repeat_cleanup: IntProperty(
name="Recursive Prepare",
description="Number of times that the preparation phase runs\n"
"at the start of the script\n"
@@ -94,25 +94,25 @@ class MESH_OT_edges_floor_plan(Operator):
"Useful for complex meshes, however works best on flat surfaces\n"
"as the extrude direction has to be defined")
]
- fill_type = EnumProperty(
+ fill_type: EnumProperty(
name="Fill Type",
items=fill_items,
description="Choose the method for creating geometry",
default='SOLIDIFY'
)
- keep_faces = BoolProperty(
+ keep_faces: BoolProperty(
name="Keep Faces",
description="Keep or not the fill faces\n"
"Can depend on Remove Ngons state",
default=False
)
- tri_faces = BoolProperty(
+ tri_faces: BoolProperty(
name="Triangulate Faces",
description="Triangulate the created fill faces\n"
"Sometimes can lead to unsatisfactory results",
default=False
)
- initial_extrude = FloatVectorProperty(
+ initial_extrude: FloatVectorProperty(
name="Initial Extrude",
description="",
default=(0.0, 0.0, 0.1),
@@ -121,7 +121,7 @@ class MESH_OT_edges_floor_plan(Operator):
precision=3,
size=3
)
- remove_ngons = BoolProperty(
+ remove_ngons: BoolProperty(
name="Remove Ngons",
description="Keep or not the Ngon Faces\n"
"Note about limitations:\n"
@@ -129,13 +129,13 @@ class MESH_OT_edges_floor_plan(Operator):
"Removing the Ngons can lead to no geometry created",
default=True
)
- offset = FloatProperty(
+ offset: FloatProperty(
name="Wall Offset:",
description="Set the offset for the Solidify modifier",
default=0.0,
min=-1.0, max=1.0
)
- only_rim = BoolProperty(
+ only_rim: BoolProperty(
name="Rim Only",
description="Solidify Fill Rim only option",
default=False
diff --git a/mesh_extra_tools/mesh_edges_length.py b/mesh_extra_tools/mesh_edges_length.py
index 0c1f3cb4..eac31a2f 100644
--- a/mesh_extra_tools/mesh_edges_length.py
+++ b/mesh_extra_tools/mesh_edges_length.py
@@ -64,11 +64,11 @@ class LengthSet(Operator):
"Note: works only with Edges that not share a vertex")
bl_options = {'REGISTER', 'UNDO'}
- old_length = FloatProperty(
+ old_length: FloatProperty(
name="Original length",
options={'HIDDEN'},
)
- set_length_type = EnumProperty(
+ set_length_type: EnumProperty(
items=[
('manual', "Manual",
"Input manually the desired Target Length"),
@@ -77,14 +77,14 @@ class LengthSet(Operator):
],
name="Set Type of Input",
)
- target_length = FloatProperty(
+ target_length: FloatProperty(
name="Target Length",
description="Input a value for an Edges Length target",
default=1.00,
unit='LENGTH',
precision=5
)
- existing_length = EnumProperty(
+ existing_length: EnumProperty(
items=[
('min', "Shortest",
"Set all to shortest Edge of selection"),
@@ -98,7 +98,7 @@ class LengthSet(Operator):
],
name="Existing length"
)
- mode = EnumProperty(
+ mode: EnumProperty(
items=[
('fixed', "Fixed", "Fixed"),
('increment', "Increment", "Increment"),
@@ -106,7 +106,7 @@ class LengthSet(Operator):
],
name="Mode"
)
- behaviour = EnumProperty(
+ behaviour: EnumProperty(
items=[
('proportional', "Proportional",
"Move vertex locations proportionally to the center of the Edge"),
diff --git a/mesh_extra_tools/mesh_edgetools.py b/mesh_extra_tools/mesh_edgetools.py
index cfd6c75e..08959e7b 100644
--- a/mesh_extra_tools/mesh_edgetools.py
+++ b/mesh_extra_tools/mesh_edgetools.py
@@ -654,17 +654,17 @@ class Extend(Operator):
bl_description = "Extend the selected edges of vertex pairs"
bl_options = {'REGISTER', 'UNDO'}
- di1 = BoolProperty(
+ di1: BoolProperty(
name="Forwards",
description="Extend the edge forwards",
default=True
)
- di2 = BoolProperty(
+ di2: BoolProperty(
name="Backwards",
description="Extend the edge backwards",
default=False
)
- length = FloatProperty(
+ length: FloatProperty(
name="Length",
description="Length to extend the edge",
min=0.0, max=1024.0,
@@ -776,7 +776,7 @@ class Spline(Operator):
bl_description = "Create a spline interplopation between two edges"
bl_options = {'REGISTER', 'UNDO'}
- alg = EnumProperty(
+ alg: EnumProperty(
name="Spline Algorithm",
items=[('Blender', "Blender", "Interpolation provided through mathutils.geometry"),
('Hermite', "C-Spline", "C-spline interpolation"),
@@ -784,31 +784,31 @@ class Spline(Operator):
('B-Spline', "B-Spline", "B-Spline interpolation")],
default='Bezier'
)
- segments = IntProperty(
+ segments: IntProperty(
name="Segments",
description="Number of segments to use in the interpolation",
min=2, max=4096,
soft_max=1024,
default=32
)
- flip1 = BoolProperty(
+ flip1: BoolProperty(
name="Flip Edge",
description="Flip the direction of the spline on Edge 1",
default=False
)
- flip2 = BoolProperty(
+ flip2: BoolProperty(
name="Flip Edge",
description="Flip the direction of the spline on Edge 2",
default=False
)
- ten1 = FloatProperty(
+ ten1: FloatProperty(
name="Tension",
description="Tension on Edge 1",
min=-4096.0, max=4096.0,
soft_min=-8.0, soft_max=8.0,
default=1.0
)
- ten2 = FloatProperty(
+ ten2: FloatProperty(
name="Tension",
description="Tension on Edge 2",
min=-4096.0, max=4096.0,
@@ -947,50 +947,50 @@ class Ortho(Operator):
bl_description = "Creates new edges within an angle from vertices of selected edges"
bl_options = {'REGISTER', 'UNDO'}
- vert1 = BoolProperty(
+ vert1: BoolProperty(
name="Vertice 1",
description="Enable edge creation for Vertice 1",
default=True
)
- vert2 = BoolProperty(
+ vert2: BoolProperty(
name="Vertice 2",
description="Enable edge creation for Vertice 2",
default=True
)
- vert3 = BoolProperty(
+ vert3: BoolProperty(
name="Vertice 3",
description="Enable edge creation for Vertice 3",
default=True
)
- vert4 = BoolProperty(
+ vert4: BoolProperty(
name="Vertice 4",
description="Enable edge creation for Vertice 4",
default=True
)
- pos = BoolProperty(
+ pos: BoolProperty(
name="Positive",
description="Enable creation of positive direction edges",
default=True
)
- neg = BoolProperty(
+ neg: BoolProperty(
name="Negative",
description="Enable creation of negative direction edges",
default=True
)
- angle = FloatProperty(
+ angle: FloatProperty(
name="Angle",
description="Define the angle off of the originating edge",
min=0.0, max=180.0,
default=90.0
)
- length = FloatProperty(
+ length: FloatProperty(
name="Length",
description="Length of created edges",
min=0.0, max=1024.0,
default=1.0
)
# For when only one edge is selected (Possible feature to be testd):
- plane = EnumProperty(
+ plane: EnumProperty(
name="Plane",
items=[("XY", "X-Y Plane", "Use the X-Y plane as the plane of creation"),
("XZ", "X-Z Plane", "Use the X-Z plane as the plane of creation"),
@@ -1146,7 +1146,7 @@ class Shaft(Operator):
shaftType = 0
# For tracking if the user has changed selection:
- last_edge = IntProperty(
+ last_edge: IntProperty(
name="Last Edge",
description="Tracks if user has changed selected edges",
min=0, max=1,
@@ -1154,36 +1154,36 @@ class Shaft(Operator):
)
last_flip = False
- edge = IntProperty(
+ edge: IntProperty(
name="Edge",
description="Edge to shaft around",
min=0, max=1,
default=0
)
- flip = BoolProperty(
+ flip: BoolProperty(
name="Flip Second Edge",
description="Flip the perceived direction of the second edge",
default=False
)
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="Shaft Radius",
min=0.0, max=1024.0,
default=1.0
)
- start = FloatProperty(
+ start: FloatProperty(
name="Starting Angle",
description="Angle to start the shaft at",
min=-360.0, max=360.0,
default=0.0
)
- finish = FloatProperty(
+ finish: FloatProperty(
name="Ending Angle",
description="Angle to end the shaft at",
min=-360.0, max=360.0,
default=360.0
)
- segments = IntProperty(
+ segments: IntProperty(
name="Shaft Segments",
description="Number of segments to use in the shaft",
min=1, max=4096,
@@ -1451,22 +1451,22 @@ class Slice(Operator):
bl_description = "Cut edges at the plane defined by a selected face"
bl_options = {'REGISTER', 'UNDO'}
- make_copy = BoolProperty(
+ make_copy: BoolProperty(
name="Make Copy",
description="Make new vertices at intersection points instead of splitting the edge",
default=False
)
- rip = BoolProperty(
+ rip: BoolProperty(
name="Rip",
description="Split into two edges that DO NOT share an intersection vertex",
default=True
)
- pos = BoolProperty(
+ pos: BoolProperty(
name="Positive",
description="Remove the portion on the side of the face normal",
default=False
)
- neg = BoolProperty(
+ neg: BoolProperty(
name="Negative",
description="Remove the portion on the side opposite of the face normal",
default=False
@@ -1641,7 +1641,7 @@ class Project(Operator):
"(Active is projected onto the rest)")
bl_options = {'REGISTER', 'UNDO'}
- make_copy = BoolProperty(
+ make_copy: BoolProperty(
name="Make Copy",
description="Make duplicates of the vertices instead of altering them",
default=False
@@ -1719,22 +1719,22 @@ class Project_End(Operator):
"edges closest to a plane onto that plane")
bl_options = {'REGISTER', 'UNDO'}
- make_copy = BoolProperty(
+ make_copy: BoolProperty(
name="Make Copy",
description="Make a duplicate of the vertice instead of moving it",
default=False
)
- keep_length = BoolProperty(
+ keep_length: BoolProperty(
name="Keep Edge Length",
description="Maintain edge lengths",
default=False
)
- use_force = BoolProperty(
+ use_force: BoolProperty(
name="Use opposite vertices",
description="Force the usage of the vertices at the other end of the edge",
default=False
)
- use_normal = BoolProperty(
+ use_normal: BoolProperty(
name="Project along normal",
description="Use the plane's normal as the projection direction",
default=False
diff --git a/mesh_extra_tools/mesh_fastloop.py b/mesh_extra_tools/mesh_fastloop.py
index 0bfcc405..6fd08de2 100644
--- a/mesh_extra_tools/mesh_fastloop.py
+++ b/mesh_extra_tools/mesh_fastloop.py
@@ -68,7 +68,7 @@ class OBJECT_OT_FastLoop(Operator):
bl_description = ("Create multiple edge loops in succession\n"
"Runs modal until ESC is pressed twice")
- active = BoolProperty(
+ active: BoolProperty(
name="active",
default=False
)
diff --git a/mesh_extra_tools/mesh_filletplus.py b/mesh_extra_tools/mesh_filletplus.py
index f3c9cbdf..bc38d2ea 100644
--- a/mesh_extra_tools/mesh_filletplus.py
+++ b/mesh_extra_tools/mesh_filletplus.py
@@ -297,7 +297,7 @@ class MESH_OT_fillet_plus(Operator):
"Note: Works on a mesh whose all faces share the same normal")
bl_options = {"REGISTER", "UNDO"}
- adj = FloatProperty(
+ adj: FloatProperty(
name="",
description="Size of the filleted corners",
default=0.1,
@@ -305,25 +305,25 @@ class MESH_OT_fillet_plus(Operator):
step=1,
precision=3
)
- n = IntProperty(
+ n: IntProperty(
name="",
description="Subdivision of the filleted corners",
default=3,
min=1, max=50,
step=1
)
- out = BoolProperty(
+ out: BoolProperty(
name="Outside",
description="Fillet towards outside",
default=False
)
- flip = BoolProperty(
+ flip: BoolProperty(
name="Flip",
description="Flip the direction of the Fillet\n"
"Only available if Outside option is not active",
default=False
)
- radius = BoolProperty(
+ radius: BoolProperty(
name="Radius",
description="Use radius for the size of the filleted corners",
default=False
diff --git a/mesh_extra_tools/mesh_help.py b/mesh_extra_tools/mesh_help.py
index 5df85600..30047a8b 100644
--- a/mesh_extra_tools/mesh_help.py
+++ b/mesh_extra_tools/mesh_help.py
@@ -24,12 +24,12 @@ class MESH_OT_extra_tools_help(Operator):
bl_description = "Tool Help - click to read some basic information"
bl_options = {'REGISTER'}
- help_ids = StringProperty(
+ help_ids: StringProperty(
name="ID of the Operator to display",
options={'HIDDEN'},
default="default"
)
- popup_size = IntProperty(
+ popup_size: IntProperty(
name="Size of the Help Pop-up Menu",
default=350,
min=100,
diff --git a/mesh_extra_tools/mesh_mextrude_plus.py b/mesh_extra_tools/mesh_mextrude_plus.py
index de5f561b..5fa2aa2b 100644
--- a/mesh_extra_tools/mesh_mextrude_plus.py
+++ b/mesh_extra_tools/mesh_mextrude_plus.py
@@ -84,42 +84,42 @@ class MExtrude(Operator):
"Scaling, Variation, Randomization")
bl_options = {"REGISTER", "UNDO", "PRESET"}
- off = FloatProperty(
+ off: FloatProperty(
name="Offset",
soft_min=0.001, soft_max=10,
min=-100, max=100,
default=1.0,
description="Translation"
)
- offx = FloatProperty(
+ offx: FloatProperty(
name="Loc X",
soft_min=-10.0, soft_max=10.0,
min=-100.0, max=100.0,
default=0.0,
description="Global Translation X"
)
- offy = FloatProperty(
+ offy: FloatProperty(
name="Loc Y",
soft_min=-10.0, soft_max=10.0,
min=-100.0, max=100.0,
default=0.0,
description="Global Translation Y"
)
- offz = FloatProperty(
+ offz: FloatProperty(
name="Loc Z",
soft_min=-10.0, soft_max=10.0,
min=-100.0, max=100.0,
default=0.0,
description="Global Translation Z"
)
- rotx = FloatProperty(
+ rotx: FloatProperty(
name="Rot X",
min=-85, max=85,
soft_min=-30, soft_max=30,
default=0,
description="X Rotation"
)
- roty = FloatProperty(
+ roty: FloatProperty(
name="Rot Y",
min=-85, max=85,
soft_min=-30,
@@ -127,96 +127,96 @@ class MExtrude(Operator):
default=0,
description="Y Rotation"
)
- rotz = FloatProperty(
+ rotz: FloatProperty(
name="Rot Z",
min=-85, max=85,
soft_min=-30, soft_max=30,
default=-0,
description="Z Rotation"
)
- nrotx = FloatProperty(
+ nrotx: FloatProperty(
name="N Rot X",
min=-85, max=85,
soft_min=-30, soft_max=30,
default=0,
description="Normal X Rotation"
)
- nroty = FloatProperty(
+ nroty: FloatProperty(
name="N Rot Y",
min=-85, max=85,
soft_min=-30, soft_max=30,
default=0,
description="Normal Y Rotation"
)
- nrotz = FloatProperty(
+ nrotz: FloatProperty(
name="N Rot Z",
min=-85, max=85,
soft_min=-30, soft_max=30,
default=-0,
description="Normal Z Rotation"
)
- sca = FloatProperty(
+ sca: FloatProperty(
name="Scale",
min=0.01, max=10,
soft_min=0.5, soft_max=1.5,
default=1.0,
description="Scaling of the selected faces after extrusion"
)
- var1 = FloatProperty(
+ var1: FloatProperty(
name="Offset Var", min=-10, max=10,
soft_min=-1, soft_max=1,
default=0,
description="Offset variation"
)
- var2 = FloatProperty(
+ var2: FloatProperty(
name="Rotation Var",
min=-10, max=10,
soft_min=-1, soft_max=1,
default=0,
description="Rotation variation"
)
- var3 = FloatProperty(
+ var3: FloatProperty(
name="Scale Noise",
min=-10, max=10,
soft_min=-1, soft_max=1,
default=0,
description="Scaling noise"
)
- var4 = IntProperty(
+ var4: IntProperty(
name="Probability",
min=0, max=100,
default=100,
description="Probability, chance of extruding a face"
)
- num = IntProperty(
+ num: IntProperty(
name="Repeat",
min=1, max=500,
soft_max=100,
default=5,
description="Repetitions"
)
- ran = IntProperty(
+ ran: IntProperty(
name="Seed",
min=-9999, max=9999,
default=0,
description="Seed to feed random values"
)
- opt1 = BoolProperty(
+ opt1: BoolProperty(
name="Polygon coordinates",
default=True,
description="Polygon coordinates, Object coordinates"
)
- opt2 = BoolProperty(
+ opt2: BoolProperty(
name="Proportional offset",
default=False,
description="Scale * Offset"
)
- opt3 = BoolProperty(
+ opt3: BoolProperty(
name="Per step rotation noise",
default=False,
description="Per step rotation noise, Initial rotation noise"
)
- opt4 = BoolProperty(
+ opt4: BoolProperty(
name="Per step scale noise",
default=False,
description="Per step scale noise, Initial scale noise"
diff --git a/mesh_extra_tools/mesh_offset_edges.py b/mesh_extra_tools/mesh_offset_edges.py
index e92c5430..b6d760b1 100644
--- a/mesh_extra_tools/mesh_offset_edges.py
+++ b/mesh_extra_tools/mesh_offset_edges.py
@@ -509,7 +509,7 @@ class OffsetEdges(Operator):
"Operates only on separate Edge loops selections")
bl_options = {'REGISTER', 'UNDO'}
- geometry_mode = EnumProperty(
+ geometry_mode: EnumProperty(
items=[('offset', "Offset", "Offset edges"),
('extrude', "Extrude", "Extrude edges"),
('move', "Move", "Move selected edges")],
@@ -517,38 +517,38 @@ class OffsetEdges(Operator):
default='offset',
update=use_cashes
)
- width = FloatProperty(
+ width: FloatProperty(
name="Width",
default=.2,
precision=4, step=1,
update=use_cashes
)
- flip_width = BoolProperty(
+ flip_width: BoolProperty(
name="Flip Width",
default=False,
description="Flip width direction",
update=use_cashes
)
- depth = FloatProperty(
+ depth: FloatProperty(
name="Depth",
default=.0,
precision=4, step=1,
update=use_cashes
)
- flip_depth = BoolProperty(
+ flip_depth: BoolProperty(
name="Flip Depth",
default=False,
description="Flip depth direction",
update=use_cashes
)
- depth_mode = EnumProperty(
+ depth_mode: EnumProperty(
items=[('angle', "Angle", "Angle"),
('depth', "Depth", "Depth")],
name="Depth mode",
default='angle',
update=use_cashes
)
- angle = FloatProperty(
+ angle: FloatProperty(
name="Angle", default=0,
precision=3, step=.1,
min=-2 * pi, max=2 * pi,
@@ -556,33 +556,33 @@ class OffsetEdges(Operator):
description="Angle",
update=use_cashes
)
- flip_angle = BoolProperty(
+ flip_angle: BoolProperty(
name="Flip Angle",
default=False,
description="Flip Angle",
update=use_cashes
)
- follow_face = BoolProperty(
+ follow_face: BoolProperty(
name="Follow Face",
default=False,
description="Offset along faces around"
)
- mirror_modifier = BoolProperty(
+ mirror_modifier: BoolProperty(
name="Mirror Modifier",
default=False,
description="Take into account of Mirror modifier"
)
- edge_rail = BoolProperty(
+ edge_rail: BoolProperty(
name="Edge Rail",
default=False,
description="Align vertices along inner edges"
)
- edge_rail_only_end = BoolProperty(
+ edge_rail_only_end: BoolProperty(
name="Edge Rail Only End",
default=False,
description="Apply edge rail to end verts only"
)
- threshold = FloatProperty(
+ threshold: FloatProperty(
name="Flat Face Threshold",
default=radians(0.05), precision=5,
step=1.0e-4, subtype='ANGLE',
@@ -590,12 +590,12 @@ class OffsetEdges(Operator):
"below this value, those faces are regarded as flat",
options={'HIDDEN'}
)
- caches_valid = BoolProperty(
+ caches_valid: BoolProperty(
name="Caches Valid",
default=False,
options={'HIDDEN'}
)
- angle_presets = EnumProperty(
+ angle_presets: EnumProperty(
items=[('0°', "0°", "0°"),
('15°', "15°", "15°"),
('30°', "30°", "30°"),
diff --git a/mesh_extra_tools/mesh_pen_tool.py b/mesh_extra_tools/mesh_pen_tool.py
index cd11f582..13e57081 100644
--- a/mesh_extra_tools/mesh_pen_tool.py
+++ b/mesh_extra_tools/mesh_pen_tool.py
@@ -258,7 +258,7 @@ def draw_callback_px(self, context):
class pen_tool_properties(PropertyGroup):
- a = FloatProperty(
+ a: FloatProperty(
name="Alpha",
description="Set Font Alpha",
default=1.0,
@@ -266,29 +266,29 @@ class pen_tool_properties(PropertyGroup):
step=10,
precision=1
)
- fs = IntProperty(
+ fs: IntProperty(
name="Size",
description="Set Font Size",
default=14,
min=12, max=40,
step=1
)
- b0 = BoolProperty(
+ b0: BoolProperty(
name="Angles",
description="Display All Angles on Drawn Edges",
default=False
)
- b1 = BoolProperty(
+ b1: BoolProperty(
name="Edge Length",
description="Display All Lengths of Drawn Edges",
default=False
)
- b2 = BoolProperty(
+ b2: BoolProperty(
name="Mouse Location 3D",
description="Display the location coordinates of the mouse cursor",
default=False
)
- restore_view = BoolProperty(
+ restore_view: BoolProperty(
name="Restore View",
description="After the tool has finished, is the Viewport restored\n"
"to it's previous state",
@@ -351,7 +351,7 @@ class pen_tool_operator(Operator):
bl_label = "Pen Tool"
bl_options = {"REGISTER", "UNDO", "INTERNAL"}
- text_location = IntProperty(
+ text_location: IntProperty(
name="",
default=0,
options={'HIDDEN'}
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_index_select.py b/mesh_extra_tools/mesh_select_tools/mesh_index_select.py
index 492ff825..bc894924 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_index_select.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_index_select.py
@@ -25,7 +25,7 @@ class SelVertEdgeFace(Operator):
bl_description = "Select Vertices, Edges, Faces by their indices"
bl_options = {"REGISTER", "UNDO"}
- select_type = EnumProperty(
+ select_type: EnumProperty(
items=[
('VERT', "Vertices", "Select Vertices by index"),
('EDGE', "Edges", "Select Edges by index"),
@@ -35,7 +35,7 @@ class SelVertEdgeFace(Operator):
description="",
default='VERT',
)
- indice = FloatProperty(
+ indice: FloatProperty(
name="Selected",
default=0,
min=0, max=100,
@@ -43,17 +43,17 @@ class SelVertEdgeFace(Operator):
precision=2,
subtype="PERCENTAGE"
)
- delta = BoolProperty(
+ delta: BoolProperty(
name="Use Parameter",
default=False,
description="Select by Index / Parameter"
)
- flip = BoolProperty(
+ flip: BoolProperty(
name="Reverse Order",
default=False,
description="Reverse selecting order"
)
- start_new = BoolProperty(
+ start_new: BoolProperty(
name="Fresh Start",
default=False,
description="Start from no previous selection\n"
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py b/mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py
index 799f6002..cf25cf6f 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py
@@ -162,7 +162,7 @@ class Select_init(Operator):
"defined by a vector with coordinates X, Y, Z")
bl_options = {'REGISTER', 'UNDO'}
- direction = FloatVectorProperty(
+ direction: FloatVectorProperty(
name="Direction",
description="Define a vector from the inputs axis X, Y, Z\n"
"Used to define the normals direction",
@@ -172,7 +172,7 @@ class Select_init(Operator):
step=100,
precision=2
)
- divergence = FloatProperty(
+ divergence: FloatProperty(
name="Divergence",
description="The number of degrees the selection may differ from the Vector\n"
"(Input is converted to radians)",
@@ -183,14 +183,14 @@ class Select_init(Operator):
precision=2,
subtype='ANGLE'
)
- extend = BoolProperty(
+ extend: BoolProperty(
name="Extend",
description="Extend the current selection",
default=False
)
# The spaces we use
spaces = (('LOC', 'Local', ''), ('GLO', 'Global', ''))
- space = EnumProperty(
+ space: EnumProperty(
items=spaces,
name="Space",
description="The space to interpret the directions in",
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py b/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
index 3ae489d5..cea9976f 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
@@ -183,7 +183,7 @@ class Select_init(bpy.types.Operator):
"Does not work in Vertex Select mode")
bl_options = {'REGISTER', 'UNDO'}
- edgeLength = FloatProperty(
+ edgeLength: FloatProperty(
name="Edge length",
description="The comparison scale in Blender units",
default=1.0,
@@ -196,18 +196,18 @@ class Select_init(bpy.types.Operator):
sizes = (('SMALL', 'Smaller', "Select items smaller or equal the size setting"),
('BIG', 'Bigger', "Select items bigger or equal to the size setting"),
('EQUAL', 'Equal', "Select edges equal to the size setting"))
- edgeSize = EnumProperty(
+ edgeSize: EnumProperty(
items=sizes,
name="Edge comparison",
description="Choose the relation to set edge length",
default='EQUAL'
)
- extend = BoolProperty(
+ extend: BoolProperty(
name="Extend",
description="Extend the current selection",
default=False
)
- start_new = BoolProperty(
+ start_new: BoolProperty(
name="Fresh Start",
default=False,
description="Start from no previous selection"
@@ -215,7 +215,7 @@ class Select_init(bpy.types.Operator):
# The spaces we use
spaces = (('LOC', 'Local', "Use Local space"),
('GLO', 'Global', "Use Global Space"))
- space = EnumProperty(
+ space: EnumProperty(
items=spaces,
name="Space",
description="The space to interpret the directions in",
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py b/mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py
index f002d0d1..cecf564c 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py
@@ -164,22 +164,22 @@ class Select_init(Operator):
"Number Pi (3.14 etc.) or e (2.71828 - Euler's number)")
bl_options = {'REGISTER', 'UNDO'}
- e = BoolProperty(
+ e: BoolProperty(
name="Use e",
description="Use e as the base of selection instead of pi",
default=False
)
- invert = BoolProperty(
+ invert: BoolProperty(
name="Invert",
description="Invert the selection result",
default=False
)
- extend = BoolProperty(
+ extend: BoolProperty(
name="Extend",
description="Extend the current selection",
default=False
)
- start_new = BoolProperty(
+ start_new: BoolProperty(
name="Fresh Start",
default=False,
description="Start from no previous selection"
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py b/mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py
index 534740a1..7afe80fe 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py
@@ -32,14 +32,14 @@ class DATA_OP_facetype_select(Operator):
bl_description = "Select all faces of a certain type"
bl_options = {'REGISTER', 'UNDO'}
- face_type = EnumProperty(
+ face_type: EnumProperty(
name="Select faces:",
items=(("3", "Triangles", "Faces made up of 3 vertices"),
("4", "Quads", "Faces made up of 4 vertices"),
("5", "Ngons", "Faces made up of 5 and more vertices")),
default="5"
)
- extend = BoolProperty(
+ extend: BoolProperty(
name="Extend",
description="Extend Selection",
default=False
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py b/mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py
index 1198f9ff..2c574f2d 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py
@@ -107,14 +107,14 @@ class Select_init(Operator):
bl_options = {'REGISTER', 'UNDO'}
# Iterations
- iterations = IntProperty(
+ iterations: IntProperty(
name="Iterations",
description="Run the selection the given number of times",
default=1,
min=0, max=300,
soft_min=0, soft_max=100
)
- extend = BoolProperty(
+ extend: BoolProperty(
name="Extend",
description="Extend the current selection",
default=False
diff --git a/mesh_extra_tools/mesh_vertex_chamfer.py b/mesh_extra_tools/mesh_vertex_chamfer.py
index a80ba270..d3a4bc7b 100644
--- a/mesh_extra_tools/mesh_vertex_chamfer.py
+++ b/mesh_extra_tools/mesh_vertex_chamfer.py
@@ -44,26 +44,26 @@ class VertexChamfer(Operator):
bl_description = "Tri chamfer selected vertices"
bl_options = {'REGISTER', 'UNDO'}
- factor = FloatProperty(
+ factor: FloatProperty(
name="Factor",
description="Size of the Champfer",
default=0.1,
min=0.0,
soft_max=1.0
)
- relative = BoolProperty(
+ relative: BoolProperty(
name="Relative",
description="If Relative, Champfer size is relative to the edge length",
default=True
)
- dissolve = BoolProperty(
+ dissolve: BoolProperty(
name="Remove",
description="Remove/keep the original selected vertices\n"
"Remove creates a new triangle face between the Champfer edges,\n"
"similar to the Dissolve Vertices operator",
default=True
)
- displace = FloatProperty(
+ displace: FloatProperty(
name="Displace",
description="Active only if Remove option is disabled\n"
"Displaces the original selected vertices along the normals\n"
diff --git a/mesh_extra_tools/pkhg_faces.py b/mesh_extra_tools/pkhg_faces.py
index 08faf560..52ecdbc9 100644
--- a/mesh_extra_tools/pkhg_faces.py
+++ b/mesh_extra_tools/pkhg_faces.py
@@ -31,111 +31,111 @@ class MESH_OT_add_faces_to_object(Operator):
bl_description = "Set parameters and build object with added faces"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- reverse_faces = BoolProperty(
+ reverse_faces: BoolProperty(
name="Reverse Faces",
default=False,
description="Revert the normals of selected faces"
)
- name_source_object = StringProperty(
+ name_source_object: StringProperty(
name="Mesh",
description="Choose a Source Mesh",
default="Cube"
)
- remove_start_faces = BoolProperty(
+ remove_start_faces: BoolProperty(
name="Remove Start Faces",
default=True,
description="Make a choice about removal of Original Faces"
)
- base_height = FloatProperty(
+ base_height: FloatProperty(
name="Base Height",
min=-20,
soft_max=10, max=20,
default=0.2,
description="Set general Base Height"
)
- use_relative_base_height = BoolProperty(
+ use_relative_base_height: BoolProperty(
name="Relative Base Height",
default=False,
description="Relative or absolute Base Height"
)
- second_height = FloatProperty(
+ second_height: FloatProperty(
name="2nd height", min=-5,
soft_max=5, max=20,
default=0.2,
description="Second height for various shapes"
)
- width = FloatProperty(
+ width: FloatProperty(
name="Width Faces",
min=-20, max=20,
default=0.5,
description="Set general width"
)
- repeat_extrude = IntProperty(
+ repeat_extrude: IntProperty(
name="Repeat",
min=1,
soft_max=5, max=20,
description="For longer base"
)
- move_inside = FloatProperty(
+ move_inside: FloatProperty(
name="Move Inside",
min=0.0,
max=1.0,
default=0.5,
description="How much move to inside"
)
- thickness = FloatProperty(
+ thickness: FloatProperty(
name="Thickness",
soft_min=0.01, min=0,
soft_max=5.0, max=20.0,
default=0
)
- depth = FloatProperty(
+ depth: FloatProperty(
name="Depth",
min=-5,
soft_max=5.0, max=20.0,
default=0
)
- collapse_edges = BoolProperty(
+ collapse_edges: BoolProperty(
name="Make Point",
default=False,
description="Collapse the vertices of edges"
)
- spike_base_width = FloatProperty(
+ spike_base_width: FloatProperty(
name="Spike Base Width",
default=0.4,
min=-4.0,
soft_max=1, max=20,
description="Base width of a spike"
)
- base_height_inset = FloatProperty(
+ base_height_inset: FloatProperty(
name="Base Height Inset",
default=0.0,
min=-5, max=5,
description="To elevate or drop the Base height Inset"
)
- top_spike = FloatProperty(
+ top_spike: FloatProperty(
name="Top Spike",
default=1.0,
min=-10.0, max=10.0,
description="The Base Height of a spike"
)
- top_extra_height = FloatProperty(
+ top_extra_height: FloatProperty(
name="Top Extra Height",
default=0.0,
min=-10.0, max=10.0,
description="Add extra height"
)
- step_with_real_spike = BoolProperty(
+ step_with_real_spike: BoolProperty(
name="Step with Real Spike",
default=False,
description="In stepped, use a real spike"
)
- use_relative = BoolProperty(
+ use_relative: BoolProperty(
name="Use Relative",
default=False,
description="Change size using area, min or max"
)
- face_types = EnumProperty(
+ face_types: EnumProperty(
name="Face Types",
description="Different types of Faces",
default="no",
@@ -151,36 +151,36 @@ class MESH_OT_add_faces_to_object(Operator):
('bar', "Bar", "Bar"),
]
)
- strange_boxed_effect = BoolProperty(
+ strange_boxed_effect: BoolProperty(
name="Strange Effect",
default=False,
description="Do not show one extrusion"
)
- use_boundary = BoolProperty(
+ use_boundary: BoolProperty(
name="Use Boundary",
default=True
)
- use_even_offset = BoolProperty(
+ use_even_offset: BoolProperty(
name="Even Offset",
default=True
)
- use_relative_offset = BoolProperty(
+ use_relative_offset: BoolProperty(
name="Relative Offset",
default=True
)
- use_edge_rail = BoolProperty(
+ use_edge_rail: BoolProperty(
name="Edge Rail",
default=False
)
- use_outset = BoolProperty(
+ use_outset: BoolProperty(
name="Outset",
default=False
)
- use_select_inset = BoolProperty(
+ use_select_inset: BoolProperty(
name="Inset",
default=False
)
- use_interpolate = BoolProperty(
+ use_interpolate: BoolProperty(
name="Interpolate",
default=True
)
diff --git a/mesh_extra_tools/random_vertices.py b/mesh_extra_tools/random_vertices.py
index cf0ee224..bd878218 100644
--- a/mesh_extra_tools/random_vertices.py
+++ b/mesh_extra_tools/random_vertices.py
@@ -94,12 +94,12 @@ class MESH_OT_random_vertices(Operator):
"or a multiplication of them and the Vertex Weights")
bl_options = {'REGISTER', 'UNDO'}
- vgfilter = BoolProperty(
+ vgfilter: BoolProperty(
name="Vertex Group",
description="Use Vertex Weight defined in the Active Group",
default=False
)
- factor = FloatProperty(
+ factor: FloatProperty(
name="Factor",
description="Base Multiplier of the randomization effect",
default=1
diff --git a/mesh_extra_tools/split_solidify.py b/mesh_extra_tools/split_solidify.py
index 6b830543..4f4aaedf 100644
--- a/mesh_extra_tools/split_solidify.py
+++ b/mesh_extra_tools/split_solidify.py
@@ -109,7 +109,7 @@ class MESH_OT_split_solidify(Operator):
bl_description = "Split and Solidify selected Faces"
bl_options = {"REGISTER", "UNDO"}
- distance = FloatProperty(
+ distance: FloatProperty(
name="",
description="Distance of the splitted Faces to the original geometry",
default=0.4,
@@ -117,7 +117,7 @@ class MESH_OT_split_solidify(Operator):
step=1,
precision=3
)
- thickness = FloatProperty(
+ thickness: FloatProperty(
name="",
description="Thickness of the splitted Faces",
default=0.04,
@@ -125,7 +125,7 @@ class MESH_OT_split_solidify(Operator):
step=1,
precision=3
)
- random_dist = FloatProperty(
+ random_dist: FloatProperty(
name="",
description="Randomization factor of the splitted Faces' location",
default=0.06,
@@ -133,16 +133,16 @@ class MESH_OT_split_solidify(Operator):
step=1,
precision=3
)
- loc_random = BoolProperty(
+ loc_random: BoolProperty(
name="Random",
description="Randomize the locations of splitted faces",
default=False
)
- del_original = BoolProperty(
+ del_original: BoolProperty(
name="Delete original faces",
default=True
)
- normal_extr = EnumProperty(
+ normal_extr: EnumProperty(
items=(('opt0', "Face", "Solidify along Face Normals"),
('opt1', "Vertex", "Solidify along Vertex Normals")),
name="Normal",
diff --git a/mesh_extra_tools/vertex_align.py b/mesh_extra_tools/vertex_align.py
index e5570fd1..6b9d2a51 100644
--- a/mesh_extra_tools/vertex_align.py
+++ b/mesh_extra_tools/vertex_align.py
@@ -203,7 +203,7 @@ class Vertex_align_coord_menu(Operator):
bl_description = "Change the custom coordinates for aligning"
bl_options = {'REGISTER', 'UNDO'}
- def_axis_coord = FloatVectorProperty(
+ def_axis_coord: FloatVectorProperty(
name="",
description="Enter the values of coordinates",
default=(0.0, 0.0, 0.0),