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 /add_mesh_extra_objects
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 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/Wallfactory.py136
-rw-r--r--add_mesh_extra_objects/__init__.py36
-rw-r--r--add_mesh_extra_objects/add_empty_as_parent.py8
-rw-r--r--add_mesh_extra_objects/add_mesh_3d_function_surface.py48
-rw-r--r--add_mesh_extra_objects/add_mesh_beam_builder.py14
-rw-r--r--add_mesh_extra_objects/add_mesh_gears.py38
-rw-r--r--add_mesh_extra_objects/add_mesh_gemstones.py20
-rw-r--r--add_mesh_extra_objects/add_mesh_honeycomb.py14
-rw-r--r--add_mesh_extra_objects/add_mesh_menger_sponge.py10
-rw-r--r--add_mesh_extra_objects/add_mesh_pipe_joint.py62
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py10
-rw-r--r--add_mesh_extra_objects/add_mesh_round_brilliant.py22
-rw-r--r--add_mesh_extra_objects/add_mesh_round_cube.py14
-rw-r--r--add_mesh_extra_objects/add_mesh_solid.py16
-rw-r--r--add_mesh_extra_objects/add_mesh_star.py8
-rw-r--r--add_mesh_extra_objects/add_mesh_supertoroid.py16
-rw-r--r--add_mesh_extra_objects/add_mesh_teapot.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_torusknot.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_triangles.py12
-rw-r--r--add_mesh_extra_objects/add_mesh_twisted_torus.py16
-rw-r--r--add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py238
-rw-r--r--add_mesh_extra_objects/mesh_discombobulator.py2
22 files changed, 374 insertions, 374 deletions
diff --git a/add_mesh_extra_objects/Wallfactory.py b/add_mesh_extra_objects/Wallfactory.py
index 16215fbf..b6d7460f 100644
--- a/add_mesh_extra_objects/Wallfactory.py
+++ b/add_mesh_extra_objects/Wallfactory.py
@@ -66,7 +66,7 @@ class add_mesh_wallb(Operator):
# only create object when True
# False allows modifying several parameters without creating object
- ConstructTog = BoolProperty(
+ ConstructTog: BoolProperty(
name="Construct",
description="Generate the object",
default=True
@@ -74,13 +74,13 @@ class add_mesh_wallb(Operator):
# need to modify so radial makes a tower (normal);
# want "flat" setting to make disk (alternate)
# make the wall circular - if not sloped it's a flat disc
- RadialTog = BoolProperty(
+ RadialTog: BoolProperty(
name="Radial",
description="Make masonry radial",
default=False
)
# curve the wall - if radial creates dome.
- SlopeTog = BoolProperty(
+ SlopeTog: BoolProperty(
name="Curved",
description="Make masonry sloped, or curved",
default=False
@@ -88,214 +88,214 @@ class add_mesh_wallb(Operator):
# need to review defaults and limits for all of these UI objects
# wall area/size
- WallStart = FloatProperty(
+ WallStart: FloatProperty(
name="Start",
description="Left side, or start angle",
default=-10.0,
min=-100, max=100.0
)
- WallEnd = FloatProperty(
+ WallEnd: FloatProperty(
name="End",
description="Right side, or end angle",
default=10.0,
min=0.0, max=100.0
)
- WallBottom = FloatProperty(
+ WallBottom: FloatProperty(
name="Bottom",
description="Lower height or radius",
default=0.0,
min=-100, max=100
)
- WallTop = FloatProperty(
+ WallTop: FloatProperty(
name="Top",
description="Upper height or radius",
default=15.0,
min=0.0, max=100.0
)
- EdgeOffset = FloatProperty(
+ EdgeOffset: FloatProperty(
name="Edging",
description="Block staggering on wall sides",
default=0.6, min=0.0, max=100.0
)
# block sizing
- Width = FloatProperty(
+ Width: FloatProperty(
name="Width",
description="Average width of each block",
default=1.5,
min=0.01, max=100.0
)
- WidthVariance = FloatProperty(
+ WidthVariance: FloatProperty(
name="Variance",
description="Random variance of block width",
default=0.5,
min=0.0, max=100.0
)
- WidthMinimum = FloatProperty(
+ WidthMinimum: FloatProperty(
name="Minimum",
description="Absolute minimum block width",
default=0.5,
min=0.01, max=100.0
)
- Height = FloatProperty(
+ Height: FloatProperty(
name="Height",
description="Average Height of each block",
default=0.7,
min=0.01, max=100.0
)
- HeightVariance = FloatProperty(
+ HeightVariance: FloatProperty(
name="Variance",
description="Random variance of block Height",
default=0.3,
min=0.0, max=100.0
)
- HeightMinimum = FloatProperty(
+ HeightMinimum: FloatProperty(
name="Minimum",
description="Absolute minimum block Height",
default=0.25,
min=0.01, max=100.0
)
- Depth = FloatProperty(
+ Depth: FloatProperty(
name="Depth",
description="Average Depth of each block",
default=2.0,
min=0.01, max=100.0
)
- DepthVariance = FloatProperty(
+ DepthVariance: FloatProperty(
name="Variance",
description="Random variance of block Depth",
default=0.1,
min=0.0, max=100.0
)
- DepthMinimum = FloatProperty(
+ DepthMinimum: FloatProperty(
name="Minimum",
description="Absolute minimum block Depth",
default=1.0,
min=0.01, max=100.0
)
- MergeBlock = BoolProperty(
+ MergeBlock: BoolProperty(
name="Merge Blocks",
description="Make big blocks (merge closely adjoining blocks)",
default=False
)
# edging for blocks
- Grout = FloatProperty(
+ Grout: FloatProperty(
name="Thickness",
description="Distance between blocks",
default=0.1,
min=-10.0, max=10.0
)
- GroutVariance = FloatProperty(
+ GroutVariance: FloatProperty(
name="Variance",
description="Random variance of block Grout",
default=0.03,
min=0.0, max=100.0
)
- GroutDepth = FloatProperty(
+ GroutDepth: FloatProperty(
name="Depth",
description="Grout Depth from the face of the blocks",
default=0.1,
min=0.0001, max=10.0
)
- GroutDepthVariance = FloatProperty(
+ GroutDepthVariance: FloatProperty(
name="Variance",
description="Random variance of block Grout Depth",
default=0.03,
min=0.0, max=100.0
)
- GroutEdge = BoolProperty(
+ GroutEdge: BoolProperty(
name="Edging",
description="Grout perimiter",
default=False
)
# properties for openings
- Opening1Tog = BoolProperty(
+ Opening1Tog: BoolProperty(
name="Opening(s)",
description="Make windows or doors",
default=True
)
- Opening1Width = FloatProperty(
+ Opening1Width: FloatProperty(
name="Width",
description="The Width of the first opening",
default=2.5,
min=0.01, max=100.0
)
- Opening1Height = FloatProperty(
+ Opening1Height: FloatProperty(
name="Height",
description="The Height of the first opening",
default=3.5,
min=0.01, max=100.0
)
- Opening1X = FloatProperty(
+ Opening1X: FloatProperty(
name="Indent",
description="The x position or spacing of the first opening",
default=5.0,
min=-100, max=100.0
)
- Opening1Z = FloatProperty(
+ Opening1Z: FloatProperty(
name="Bottom",
description="The z position of the First opening",
default=5.0,
min=-100, max=100.0
)
- Opening1Repeat = BoolProperty(
+ Opening1Repeat: BoolProperty(
name="Repeat",
description="make multiple openings, with spacing X1",
default=False
)
- Opening1TopArchTog = BoolProperty(
+ Opening1TopArchTog: BoolProperty(
name="Top Arch",
description="Add an arch to the top of the first opening",
default=True
)
- Opening1TopArch = FloatProperty(
+ Opening1TopArch: FloatProperty(
name="Curve",
description="Height of the arch on the top of the opening",
default=2.5,
min=0.001, max=100.0
)
- Opening1TopArchThickness = FloatProperty(
+ Opening1TopArchThickness: FloatProperty(
name="Thickness",
description="Thickness of the arch on the top of the opening",
default=0.75,
min=0.001, max=100.0
)
- Opening1BtmArchTog = BoolProperty(
+ Opening1BtmArchTog: BoolProperty(
name="Bottom Arch",
description="Add an arch to the bottom of opening 1",
default=False
)
- Opening1BtmArch = FloatProperty(
+ Opening1BtmArch: FloatProperty(
name="Curve",
description="Height of the arch on the bottom of the opening",
default=1.0,
min=0.01, max=100.0
)
- Opening1BtmArchThickness = FloatProperty(
+ Opening1BtmArchThickness: FloatProperty(
name="Thickness",
description="Thickness of the arch on the bottom of the opening",
default=0.5,
min=0.01, max=100.0
)
- Opening1Bevel = FloatProperty(
+ Opening1Bevel: FloatProperty(
name="Bevel",
description="Angle block face",
default=0.25,
min=-10.0, max=10.0
)
# openings on top of wall
- CrenelTog = BoolProperty(
+ CrenelTog: BoolProperty(
name="Crenels",
description="Make openings along top of wall",
default=False
)
- CrenelXP = FloatProperty(
+ CrenelXP: FloatProperty(
name="Width",
description="Gap width in wall based the percentage of wall width",
default=0.25,
min=0.10, max=1.0,
subtype="PERCENTAGE"
)
- CrenelZP = FloatProperty(
+ CrenelZP: FloatProperty(
name="Height",
description="Crenel Height as the percentage of wall height",
default=0.10,
@@ -304,166 +304,166 @@ class add_mesh_wallb(Operator):
)
# narrow openings in wall.
# need to prevent overlap with arch openings - though inversion is an interesting effect.
- SlotTog = BoolProperty(
+ SlotTog: BoolProperty(
name="Slots",
description="Make narrow openings in wall",
default=False
)
- SlotRpt = BoolProperty(
+ SlotRpt: BoolProperty(
name="Repeat",
description="Repeat slots along wall",
default=False
)
- SlotWdg = BoolProperty(
+ SlotWdg: BoolProperty(
name="Wedged (n/a)",
description="Bevel edges of slots",
default=False
)
- SlotX = FloatProperty(
+ SlotX: FloatProperty(
name="Indent",
description="The x position or spacing of slots",
default=0.0, min=-100, max=100.0
)
- SlotGap = FloatProperty(
+ SlotGap: FloatProperty(
name="Opening",
description="The opening size of slots",
default=0.5, min=0.10, max=100.0
)
- SlotV = BoolProperty(
+ SlotV: BoolProperty(
name="Vertical",
description="Vertical slots",
default=True
)
- SlotVH = FloatProperty(
+ SlotVH: FloatProperty(
name="Height",
description="Height of vertical slot",
default=3.5,
min=0.10, max=100.0
)
- SlotVBtm = FloatProperty(
+ SlotVBtm: FloatProperty(
name="Bottom",
description="Z position for slot",
default=5.00,
min=-100.0, max=100.0
)
- SlotH = BoolProperty(
+ SlotH: BoolProperty(
name="Horizontal",
description="Horizontal slots",
default=False
)
- SlotHW = FloatProperty(
+ SlotHW: FloatProperty(
name="Width",
description="Width of horizontal slot",
default=2.5,
min=0.10, max=100.0
)
# this should offset from VBtm... maybe make a % like crenels?
- SlotHBtm = FloatProperty(
+ SlotHBtm: FloatProperty(
name="Bottom",
description="Z position for horizontal slot",
default=5.50,
min=-100.0, max=100.0
)
# properties for shelf (extend blocks in area)
- ShelfTog = BoolProperty(
+ ShelfTog: BoolProperty(
name="Shelf",
description="Add blocks in area by depth to make shelf/platform",
default=False
)
- ShelfX = FloatProperty(
+ ShelfX: FloatProperty(
name="Left",
description="The x position of Shelf",
default=-5.00,
min=-100, max=100.0
)
- ShelfZ = FloatProperty(
+ ShelfZ: FloatProperty(
name="Bottom",
description="The z position of Shelf",
default=10.0,
min=-100, max=100.0
)
- ShelfH = FloatProperty(
+ ShelfH: FloatProperty(
name="Height",
description="The Height of Shelf area",
default=1.0,
min=0.01, max=100.0
)
- ShelfW = FloatProperty(
+ ShelfW: FloatProperty(
name="Width",
description="The Width of shelf area",
default=5.0,
min=0.01, max=100.0
)
- ShelfD = FloatProperty(
+ ShelfD: FloatProperty(
name="Depth",
description="Depth of each block for shelf (from cursor + 1/2 wall depth)",
default=2.0,
min=0.01, max=100.0
)
- ShelfBack = BoolProperty(
+ ShelfBack: BoolProperty(
name="Backside",
description="Shelf on backside of wall",
default=False
)
# properties for steps (extend blocks in area, progressive width)
- StepTog = BoolProperty(
+ StepTog: BoolProperty(
name="Steps",
description="Add blocks in area by depth with progressive width to make steps",
default=False
)
- StepX = FloatProperty(
+ StepX: FloatProperty(
name="Left",
description="The x position of steps",
default=-9.00,
min=-100, max=100.0
)
- StepZ = FloatProperty(
+ StepZ: FloatProperty(
name="Bottom",
description="The z position of steps",
default=0.0,
min=-100, max=100.0
)
- StepH = FloatProperty(
+ StepH: FloatProperty(
name="Height",
description="The Height of step area",
default=10.0,
min=0.01, max=100.0
)
- StepW = FloatProperty(
+ StepW: FloatProperty(
name="Width",
description="The Width of step area",
default=8.0,
min=0.01, max=100.0
)
- StepD = FloatProperty(
+ StepD: FloatProperty(
name="Depth",
description="Depth of each block for steps (from cursor + 1/2 wall depth)",
default=1.0,
min=0.01, max=100.0
)
- StepV = FloatProperty(
+ StepV: FloatProperty(
name="Riser",
description="Height of each step",
default=0.70,
min=0.01, max=100.0
)
- StepT = FloatProperty(
+ StepT: FloatProperty(
name="Tread",
description="Width of each step",
default=1.0,
min=0.01, max=100.0
)
- StepLeft = BoolProperty(
+ StepLeft: BoolProperty(
name="Direction",
description="If checked, flip steps direction towards the -X axis",
default=False
)
- StepOnly = BoolProperty(
+ StepOnly: BoolProperty(
name="Steps Only",
description="Steps only, no supporting blocks",
default=False
)
- StepBack = BoolProperty(
+ StepBack: BoolProperty(
name="Backside",
description="Steps on backside of wall",
default=False
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index 1197738c..c481d53d 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -253,94 +253,94 @@ class VIEW3D_MT_mesh_pipe_joints_add(Menu):
class discombobulator_scene_props(bpy.types.PropertyGroup):
DISC_doodads = []
# Protusions Buttons:
- repeatprot = IntProperty(
+ repeatprot: IntProperty(
name="Repeat protusions",
description=("Make several layers of protusion \n"
"Use carefully, runs recursively the discombulator"),
default=1, min=1, max=4 # set to 4 because it's 2**n reqursive
)
- doprots = BoolProperty(
+ doprots: BoolProperty(
name="Make protusions",
description="Check if we want to add protusions to the mesh",
default=True
)
- subpolygon1 = BoolProperty(
+ subpolygon1: BoolProperty(
name="1",
default=True
)
- subpolygon2 = BoolProperty(
+ subpolygon2: BoolProperty(
name="2",
default=True
)
- subpolygon3 = BoolProperty(
+ subpolygon3: BoolProperty(
name="3",
default=True
)
- subpolygon4 = BoolProperty(
+ subpolygon4: BoolProperty(
name="4",
default=True
)
- polygonschangedpercent = FloatProperty(
+ polygonschangedpercent: FloatProperty(
name="Polygon %",
description="Percentage of changed polygons",
default=1.0
)
- minHeight = FloatProperty(
+ minHeight: FloatProperty(
name="Min height",
description="Minimal height of the protusions",
default=0.2
)
- maxHeight = FloatProperty(
+ maxHeight: FloatProperty(
name="Max height",
description="Maximal height of the protusions",
default=0.4
)
- minTaper = FloatProperty(
+ minTaper: FloatProperty(
name="Min taper",
description="Minimal height of the protusions",
default=0.15, min=0.0, max=1.0,
subtype='PERCENTAGE'
)
- maxTaper = FloatProperty(
+ maxTaper: FloatProperty(
name="Max taper",
description="Maximal height of the protusions",
default=0.35, min=0.0, max=1.0,
subtype='PERCENTAGE'
)
# Doodads buttons:
- dodoodads = BoolProperty(
+ dodoodads: BoolProperty(
name="Make doodads",
description="Check if we want to generate doodads",
default=False
)
- mindoodads = IntProperty(
+ mindoodads: IntProperty(
name="Minimum doodads number",
description="Ask for the minimum number of doodads to generate per polygon",
default=1, min=0, max=50
)
- maxdoodads = IntProperty(
+ maxdoodads: IntProperty(
name="Maximum doodads number",
description="Ask for the maximum number of doodads to generate per polygon",
default=6, min=1, max=50
)
- doodMinScale = FloatProperty(
+ doodMinScale: FloatProperty(
name="Scale min", description="Minimum scaling of doodad",
default=0.5, min=0.0, max=1.0,
subtype='PERCENTAGE'
)
- doodMaxScale = FloatProperty(
+ doodMaxScale: FloatProperty(
name="Scale max",
description="Maximum scaling of doodad",
default=1.0, min=0.0, max=1.0,
subtype='PERCENTAGE'
)
# Materials buttons:
- sideProtMat = IntProperty(
+ sideProtMat: IntProperty(
name="Side's prot mat",
description="Material of protusion's sides",
default=0, min=0
)
- topProtMat = IntProperty(
+ topProtMat: IntProperty(
name="Prot's top mat",
description="Material of protusion's top",
default=0, min=0
diff --git a/add_mesh_extra_objects/add_empty_as_parent.py b/add_mesh_extra_objects/add_empty_as_parent.py
index a6ae69e6..0d4716a3 100644
--- a/add_mesh_extra_objects/add_empty_as_parent.py
+++ b/add_mesh_extra_objects/add_empty_as_parent.py
@@ -22,24 +22,24 @@ class P2E(Operator):
bl_description = "Parent selected objects to a new Empty"
bl_options = {"REGISTER", "UNDO"}
- nombre = StringProperty(
+ nombre: StringProperty(
name="",
default='OBJECTS',
description='Give the empty / group a name'
)
- grupo = BoolProperty(
+ grupo: BoolProperty(
name="Create Group",
default=False,
description="Also add objects to a group"
)
- locat = EnumProperty(
+ locat: EnumProperty(
name='',
items=[('CURSOR', 'Cursor', 'Cursor'), ('ACTIVE', 'Active', 'Active'),
('CENTER', 'Center', 'Selection Center')],
description='Empty location',
default='CENTER'
)
- renom = BoolProperty(
+ renom: BoolProperty(
name="Add Prefix",
default=False,
description="Add prefix to objects name"
diff --git a/add_mesh_extra_objects/add_mesh_3d_function_surface.py b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
index 616add3f..eb2b53c1 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -116,26 +116,26 @@ class AddZFunctionSurface(Operator):
bl_description = "Add a surface defined defined by a function z=f(x,y)"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- equation = StringProperty(
+ equation: StringProperty(
name="Z Equation",
description="Equation for z=f(x,y)",
default="1 - ( x**2 + y**2 )"
)
- div_x = IntProperty(
+ div_x: IntProperty(
name="X Subdivisions",
description="Number of vertices in x direction",
default=16,
min=3,
max=256
)
- div_y = IntProperty(
+ div_y: IntProperty(
name="Y Subdivisions",
description="Number of vertices in y direction",
default=16,
min=3,
max=256
)
- size_x = FloatProperty(
+ size_x: FloatProperty(
name="X Size",
description="Size of the x axis",
default=2.0,
@@ -143,7 +143,7 @@ class AddZFunctionSurface(Operator):
max=100.0,
unit="LENGTH"
)
- size_y = FloatProperty(
+ size_y: FloatProperty(
name="Y Size",
description="Size of the y axis",
default=2.0,
@@ -383,83 +383,83 @@ class AddXYZFunctionSurface(Operator):
"x=F1(u,v), y=F2(u,v) and z=F3(u,v)")
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- x_eq = StringProperty(
+ x_eq: StringProperty(
name="X equation",
description="Equation for x=F(u,v). "
"Also available: n, a, b, c, f, g, h",
default="cos(v)*(1+cos(u))*sin(v/8)"
)
- y_eq = StringProperty(
+ y_eq: StringProperty(
name="Y equation",
description="Equation for y=F(u,v). "
"Also available: n, a, b, c, f, g, h",
default="sin(u)*sin(v/8)+cos(v/8)*1.5"
)
- z_eq = StringProperty(
+ z_eq: StringProperty(
name="Z equation",
description="Equation for z=F(u,v). "
"Also available: n, a, b, c, f, g, h",
default="sin(v)*(1+cos(u))*sin(v/8)"
)
- range_u_min = FloatProperty(
+ range_u_min: FloatProperty(
name="U min",
description="Minimum U value. Lower boundary of U range",
min=-100.00,
max=0.00,
default=0.00
)
- range_u_max = FloatProperty(
+ range_u_max: FloatProperty(
name="U max",
description="Maximum U value. Upper boundary of U range",
min=0.00,
max=100.00,
default=2 * pi
)
- range_u_step = IntProperty(
+ range_u_step: IntProperty(
name="U step",
description="U Subdivisions",
min=1,
max=1024,
default=32
)
- wrap_u = BoolProperty(
+ wrap_u: BoolProperty(
name="U wrap",
description="U Wrap around",
default=True
)
- range_v_min = FloatProperty(
+ range_v_min: FloatProperty(
name="V min",
description="Minimum V value. Lower boundary of V range",
min=-100.00,
max=0.00,
default=0.00
)
- range_v_max = FloatProperty(
+ range_v_max: FloatProperty(
name="V max",
description="Maximum V value. Upper boundary of V range",
min=0.00,
max=100.00,
default=4 * pi
)
- range_v_step = IntProperty(
+ range_v_step: IntProperty(
name="V step",
description="V Subdivisions",
min=1,
max=1024,
default=128
)
- wrap_v = BoolProperty(
+ wrap_v: BoolProperty(
name="V wrap",
description="V Wrap around",
default=False
)
- close_v = BoolProperty(
+ close_v: BoolProperty(
name="Close V",
description="Create faces for first and last "
"V values (only if U is wrapped)",
default=False
)
- n_eq = IntProperty(
+ n_eq: IntProperty(
name="Number of objects (n=0..N-1)",
description="The parameter n will be the index "
"of the current object, 0 to N-1",
@@ -467,32 +467,32 @@ class AddXYZFunctionSurface(Operator):
max=100,
default=1
)
- a_eq = StringProperty(
+ a_eq: StringProperty(
name="A helper function",
description="Equation for a=F(u,v). Also available: n",
default="0"
)
- b_eq = StringProperty(
+ b_eq: StringProperty(
name="B helper function",
description="Equation for b=F(u,v). Also available: n",
default="0"
)
- c_eq = StringProperty(
+ c_eq: StringProperty(
name="C helper function",
description="Equation for c=F(u,v). Also available: n",
default="0"
)
- f_eq = StringProperty(
+ f_eq: StringProperty(
name="F helper function",
description="Equation for f=F(u,v). Also available: n, a, b, c",
default="0"
)
- g_eq = StringProperty(
+ g_eq: StringProperty(
name="G helper function",
description="Equation for g=F(u,v). Also available: n, a, b, c",
default="0"
)
- h_eq = StringProperty(
+ h_eq: StringProperty(
name="H helper function",
description="Equation for h=F(u,v). Also available: n, a, b, c",
default="0"
diff --git a/add_mesh_extra_objects/add_mesh_beam_builder.py b/add_mesh_extra_objects/add_mesh_beam_builder.py
index ba8ae6fc..8c876953 100644
--- a/add_mesh_extra_objects/add_mesh_beam_builder.py
+++ b/add_mesh_extra_objects/add_mesh_beam_builder.py
@@ -694,7 +694,7 @@ class addBeam(Operator):
bl_description = "Create beam meshes of various profiles"
bl_options = {'REGISTER', 'UNDO'}
- Type = EnumProperty(
+ Type: EnumProperty(
items=(
('0', "Box Profile", "Square Beam"),
("1", "U Profile", "U Profile Beam"),
@@ -705,34 +705,34 @@ class addBeam(Operator):
),
description="Beam form"
)
- beamZ = FloatProperty(
+ beamZ: FloatProperty(
name="Height",
min=0.01, max=100,
default=1
)
- beamX = FloatProperty(
+ beamX: FloatProperty(
name="Width",
min=0.01, max=100,
default=.5
)
- beamY = FloatProperty(
+ beamY: FloatProperty(
name="Depth",
min=0.01,
max=100,
default=2
)
- beamW = FloatProperty(
+ beamW: FloatProperty(
name="Thickness",
min=0.01, max=1,
default=0.1
)
- edgeA = IntProperty(
+ edgeA: IntProperty(
name="Taper",
min=0, max=100,
default=0,
description="Angle beam edges"
)
- Cursor = BoolProperty(
+ Cursor: BoolProperty(
name="Use 3D Cursor",
default=False,
description="Draw the beam where the 3D Cursor is"
diff --git a/add_mesh_extra_objects/add_mesh_gears.py b/add_mesh_extra_objects/add_mesh_gears.py
index 6a7bafd9..c631f394 100644
--- a/add_mesh_extra_objects/add_mesh_gears.py
+++ b/add_mesh_extra_objects/add_mesh_gears.py
@@ -554,69 +554,69 @@ class AddGear(Operator):
bl_description = "Construct a gear mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- number_of_teeth = IntProperty(name="Number of Teeth",
+ number_of_teeth: IntProperty(name="Number of Teeth",
description="Number of teeth on the gear",
min=2,
max=265,
default=12
)
- radius = FloatProperty(name="Radius",
+ radius: FloatProperty(name="Radius",
description="Radius of the gear, negative for crown gear",
min=-100.0,
max=100.0,
unit='LENGTH',
default=1.0
)
- addendum = FloatProperty(name="Addendum",
+ addendum: FloatProperty(name="Addendum",
description="Addendum, extent of tooth above radius",
min=0.01,
max=100.0,
unit='LENGTH',
default=0.1
)
- dedendum = FloatProperty(name="Dedendum",
+ dedendum: FloatProperty(name="Dedendum",
description="Dedendum, extent of tooth below radius",
min=0.0,
max=100.0,
unit='LENGTH',
default=0.1
)
- angle = FloatProperty(name="Pressure Angle",
+ angle: FloatProperty(name="Pressure Angle",
description="Pressure angle, skewness of tooth tip",
min=0.0,
max=radians(45.0),
unit='ROTATION',
default=radians(20.0)
)
- base = FloatProperty(name="Base",
+ base: FloatProperty(name="Base",
description="Base, extent of gear below radius",
min=0.0,
max=100.0,
unit='LENGTH',
default=0.2
)
- width = FloatProperty(name="Width",
+ width: FloatProperty(name="Width",
description="Width, thickness of gear",
min=0.05,
max=100.0,
unit='LENGTH',
default=0.2
)
- skew = FloatProperty(name="Skewness",
+ skew: FloatProperty(name="Skewness",
description="Skew of teeth",
min=radians(-90.0),
max=radians(90.0),
unit='ROTATION',
default=radians(0.0)
)
- conangle = FloatProperty(name="Conical angle",
+ conangle: FloatProperty(name="Conical angle",
description="Conical angle of gear",
min=0.0,
max=radians(90.0),
unit='ROTATION',
default=radians(0.0)
)
- crown = FloatProperty(name="Crown",
+ crown: FloatProperty(name="Crown",
description="Inward pointing extend of crown teeth",
min=0.0,
max=100.0,
@@ -681,21 +681,21 @@ class AddWormGear(Operator):
bl_description = "Construct a worm gear mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- number_of_teeth = IntProperty(
+ number_of_teeth: IntProperty(
name="Number of Teeth",
description="Number of teeth on the gear",
min=2,
max=265,
default=12
)
- number_of_rows = IntProperty(
+ number_of_rows: IntProperty(
name="Number of Rows",
description="Number of rows on the worm gear",
min=2,
max=265,
default=32
)
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="Radius of the gear, negative for crown gear",
min=-100.0,
@@ -703,7 +703,7 @@ class AddWormGear(Operator):
unit='LENGTH',
default=1.0
)
- addendum = FloatProperty(
+ addendum: FloatProperty(
name="Addendum",
description="Addendum, extent of tooth above radius",
min=0.01,
@@ -711,7 +711,7 @@ class AddWormGear(Operator):
unit='LENGTH',
default=0.1
)
- dedendum = FloatProperty(
+ dedendum: FloatProperty(
name="Dedendum",
description="Dedendum, extent of tooth below radius",
min=0.0,
@@ -719,7 +719,7 @@ class AddWormGear(Operator):
unit='LENGTH',
default=0.1
)
- angle = FloatProperty(
+ angle: FloatProperty(
name="Pressure Angle",
description="Pressure angle, skewness of tooth tip",
min=0.0,
@@ -727,7 +727,7 @@ class AddWormGear(Operator):
default=radians(20.0),
unit='ROTATION'
)
- row_height = FloatProperty(
+ row_height: FloatProperty(
name="Row Height",
description="Height of each Row",
min=0.05,
@@ -735,7 +735,7 @@ class AddWormGear(Operator):
unit='LENGTH',
default=0.2
)
- skew = FloatProperty(
+ skew: FloatProperty(
name="Skewness per Row",
description="Skew of each row",
min=radians(-90.0),
@@ -743,7 +743,7 @@ class AddWormGear(Operator):
default=radians(11.25),
unit='ROTATION'
)
- crown = FloatProperty(
+ crown: FloatProperty(
name="Crown",
description="Inward pointing extend of crown teeth",
min=0.0,
diff --git a/add_mesh_extra_objects/add_mesh_gemstones.py b/add_mesh_extra_objects/add_mesh_gemstones.py
index 0da6b488..a07c9f66 100644
--- a/add_mesh_extra_objects/add_mesh_gemstones.py
+++ b/add_mesh_extra_objects/add_mesh_gemstones.py
@@ -211,35 +211,35 @@ class AddDiamond(Operator):
bl_description = "Construct a diamond mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- segments = IntProperty(
+ segments: IntProperty(
name="Segments",
description="Number of segments for the diamond",
min=3,
max=256,
default=32
)
- girdle_radius = FloatProperty(
+ girdle_radius: FloatProperty(
name="Girdle Radius",
description="Girdle radius of the diamond",
min=0.01,
max=9999.0,
default=1.0
)
- table_radius = FloatProperty(
+ table_radius: FloatProperty(
name="Table Radius",
description="Girdle radius of the diamond",
min=0.01,
max=9999.0,
default=0.6
)
- crown_height = FloatProperty(
+ crown_height: FloatProperty(
name="Crown Height",
description="Crown height of the diamond",
min=0.01,
max=9999.0,
default=0.35
)
- pavilion_height = FloatProperty(
+ pavilion_height: FloatProperty(
name="Pavilion Height",
description="Pavilion height of the diamond",
min=0.01,
@@ -265,35 +265,35 @@ class AddGem(Operator):
bl_description = "Construct an offset faceted gem mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- segments = IntProperty(
+ segments: IntProperty(
name="Segments",
description="Longitudial segmentation",
min=3,
max=265,
default=8
)
- pavilion_radius = FloatProperty(
+ pavilion_radius: FloatProperty(
name="Radius",
description="Radius of the gem",
min=0.01,
max=9999.0,
default=1.0
)
- crown_radius = FloatProperty(
+ crown_radius: FloatProperty(
name="Table Radius",
description="Radius of the table(top)",
min=0.01,
max=9999.0,
default=0.6
)
- crown_height = FloatProperty(
+ crown_height: FloatProperty(
name="Table height",
description="Height of the top half",
min=0.01,
max=9999.0,
default=0.35
)
- pavilion_height = FloatProperty(
+ pavilion_height: FloatProperty(
name="Pavilion height",
description="Height of bottom half",
min=0.01,
diff --git a/add_mesh_extra_objects/add_mesh_honeycomb.py b/add_mesh_extra_objects/add_mesh_honeycomb.py
index 357be4cb..90d69b2d 100644
--- a/add_mesh_extra_objects/add_mesh_honeycomb.py
+++ b/add_mesh_extra_objects/add_mesh_honeycomb.py
@@ -218,13 +218,13 @@ class add_mesh_honeycomb(bpy.types.Operator):
if self.edge > m:
self.edge = m
- rows = IntProperty(
+ rows: IntProperty(
name="Num of rows",
default=2,
min=1, max=100,
description='Number of the rows'
)
- cols = IntProperty(
+ cols: IntProperty(
name='Num of cols',
default=2,
min=1, max=100,
@@ -236,28 +236,28 @@ class add_mesh_honeycomb(bpy.types.Operator):
subtype='LAYER',
options={'HIDDEN', 'SKIP_SAVE'},
)
- diam = FloatProperty(
+ diam: FloatProperty(
name='Cell Diameter',
default=1.0,
min=0.0, update=fix_edge,
description='Diameter of the cell'
)
- edge = FloatProperty(
+ edge: FloatProperty(
name='Edge Width',
default=0.1,
min=0.0, update=fix_edge,
description='Width of the edge'
)
# generic transform props
- view_align = BoolProperty(
+ view_align: BoolProperty(
name="Align to View",
default=False
)
- location = FloatVectorProperty(
+ location: FloatVectorProperty(
name="Location",
subtype='TRANSLATION'
)
- rotation = FloatVectorProperty(
+ rotation: FloatVectorProperty(
name="Rotation",
subtype='EULER'
)
diff --git a/add_mesh_extra_objects/add_mesh_menger_sponge.py b/add_mesh_extra_objects/add_mesh_menger_sponge.py
index d0d25d9e..df4fcb21 100644
--- a/add_mesh_extra_objects/add_mesh_menger_sponge.py
+++ b/add_mesh_extra_objects/add_mesh_menger_sponge.py
@@ -144,28 +144,28 @@ class AddMengerSponge(bpy.types.Operator):
bl_description = "Construct a menger sponge mesh"
bl_options = {'REGISTER', 'UNDO'}
- level = IntProperty(
+ level: IntProperty(
name="Level",
description="Sponge Level",
min=0, max=4,
default=1,
)
- radius = FloatProperty(
+ radius: FloatProperty(
name="Width",
description="Sponge Radius",
min=0.01, max=100.0,
default=1.0,
)
# generic transform props
- view_align = BoolProperty(
+ view_align: BoolProperty(
name="Align to View",
default=False,
)
- location = FloatVectorProperty(
+ location: FloatVectorProperty(
name="Location",
subtype='TRANSLATION',
)
- rotation = FloatVectorProperty(
+ rotation: FloatVectorProperty(
name="Rotation",
subtype='EULER',
)
diff --git a/add_mesh_extra_objects/add_mesh_pipe_joint.py b/add_mesh_extra_objects/add_mesh_pipe_joint.py
index c0a995d8..0fe5d67b 100644
--- a/add_mesh_extra_objects/add_mesh_pipe_joint.py
+++ b/add_mesh_extra_objects/add_mesh_pipe_joint.py
@@ -94,7 +94,7 @@ class AddElbowJoint(Operator):
bl_description = "Construct an elbow pipe mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="The radius of the pipe",
default=1.0,
@@ -102,12 +102,12 @@ class AddElbowJoint(Operator):
max=100.0,
unit="LENGTH"
)
- div = IntProperty(
+ div: IntProperty(
name="Divisions",
description="Number of vertices (divisions)",
default=32, min=3, max=256
)
- angle = FloatProperty(
+ angle: FloatProperty(
name="Angle",
description="The angle of the branching pipe (i.e. the 'arm' - "
"Measured from the center line of the main pipe",
@@ -116,7 +116,7 @@ class AddElbowJoint(Operator):
max=radians(179.9),
unit="ROTATION"
)
- startLength = FloatProperty(
+ startLength: FloatProperty(
name="Length Start",
description="Length of the beginning of the pipe",
default=3.0,
@@ -124,7 +124,7 @@ class AddElbowJoint(Operator):
max=100.0,
unit="LENGTH"
)
- endLength = FloatProperty(
+ endLength: FloatProperty(
name="End Length",
description="Length of the end of the pipe",
default=3.0,
@@ -203,7 +203,7 @@ class AddTeeJoint(Operator):
bl_description = "Construct a tee-joint pipe mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="The radius of the pipe",
default=1.0,
@@ -211,14 +211,14 @@ class AddTeeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- div = IntProperty(
+ div: IntProperty(
name="Divisions",
description="Number of vertices (divisions)",
default=32,
min=4,
max=256
)
- angle = FloatProperty(
+ angle: FloatProperty(
name="Angle",
description="The angle of the branching pipe (i.e. the 'arm' - "
"Measured from the center line of the main pipe",
@@ -227,7 +227,7 @@ class AddTeeJoint(Operator):
max=radians(179.9),
unit="ROTATION"
)
- startLength = FloatProperty(
+ startLength: FloatProperty(
name="Length Start",
description="Length of the beginning of the"
" main pipe (the straight one)",
@@ -236,7 +236,7 @@ class AddTeeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- endLength = FloatProperty(
+ endLength: FloatProperty(
name="End Length",
description="Length of the end of the"
" main pipe (the straight one)",
@@ -245,7 +245,7 @@ class AddTeeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- branchLength = FloatProperty(
+ branchLength: FloatProperty(
name="Arm Length",
description="Length of the arm pipe (the bent one)",
default=3.0,
@@ -385,7 +385,7 @@ class AddWyeJoint(Operator):
bl_description = "Construct a wye-joint pipe mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="The radius of the pipe",
default=1.0,
@@ -393,14 +393,14 @@ class AddWyeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- div = IntProperty(
+ div: IntProperty(
name="Divisions",
description="Number of vertices (divisions)",
default=32,
min=4,
max=256
)
- angle1 = FloatProperty(
+ angle1: FloatProperty(
name="Angle 1",
description="The angle of the 1. branching pipe "
"(measured from the center line of the main pipe)",
@@ -409,7 +409,7 @@ class AddWyeJoint(Operator):
max=radians(179.9),
unit="ROTATION"
)
- angle2 = FloatProperty(
+ angle2: FloatProperty(
name="Angle 2",
description="The angle of the 2. branching pipe "
"(measured from the center line of the main pipe) ",
@@ -418,7 +418,7 @@ class AddWyeJoint(Operator):
max=radians(179.9),
unit="ROTATION"
)
- startLength = FloatProperty(
+ startLength: FloatProperty(
name="Length Start",
description="Length of the beginning of the"
" main pipe (the straight one)",
@@ -427,7 +427,7 @@ class AddWyeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- branch1Length = FloatProperty(
+ branch1Length: FloatProperty(
name="Length Arm 1",
description="Length of the 1. arm",
default=3.0,
@@ -435,7 +435,7 @@ class AddWyeJoint(Operator):
max=100.0,
unit="LENGTH"
)
- branch2Length = FloatProperty(
+ branch2Length: FloatProperty(
name="Length Arm 2",
description="Length of the 2. arm",
default=3.0,
@@ -587,7 +587,7 @@ class AddCrossJoint(Operator):
bl_description = "Construct a cross-joint pipe mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="The radius of the pipe",
default=1.0,
@@ -595,14 +595,14 @@ class AddCrossJoint(Operator):
max=100.0,
unit="LENGTH"
)
- div = IntProperty(
+ div: IntProperty(
name="Divisions",
description="Number of vertices (divisions)",
default=32,
min=4,
max=256
)
- angle1 = FloatProperty(
+ angle1: FloatProperty(
name="Angle 1",
description="The angle of the 1. arm (from the main axis)",
default=radians(90.0),
@@ -610,21 +610,21 @@ class AddCrossJoint(Operator):
max=radians(179.9),
unit="ROTATION"
)
- angle2 = FloatProperty(name="Angle 2",
+ angle2: FloatProperty(name="Angle 2",
description="The angle of the 2. arm (from the main axis)",
default=radians(90.0),
min=radians(-179.9),
max=radians(179.9),
unit="ROTATION"
)
- angle3 = FloatProperty(name="Angle 3 (center)",
+ angle3: FloatProperty(name="Angle 3 (center)",
description="The angle of the center arm (from the main axis)",
default=radians(0.0),
min=radians(-179.9),
max=radians(179.9),
unit="ROTATION"
)
- startLength = FloatProperty(
+ startLength: FloatProperty(
name="Length Start",
description="Length of the beginning of the "
"main pipe (the straight one)",
@@ -633,14 +633,14 @@ class AddCrossJoint(Operator):
max=100.0,
unit="LENGTH"
)
- branch1Length = FloatProperty(name="Length Arm 1",
+ branch1Length: FloatProperty(name="Length Arm 1",
description="Length of the 1. arm",
default=3.0,
min=0.01,
max=100.0,
unit="LENGTH"
)
- branch2Length = FloatProperty(
+ branch2Length: FloatProperty(
name="Length Arm 2",
description="Length of the 2. arm",
default=3.0,
@@ -648,7 +648,7 @@ class AddCrossJoint(Operator):
max=100.0,
unit="LENGTH"
)
- branch3Length = FloatProperty(
+ branch3Length: FloatProperty(
name="Length Arm 3 (center)",
description="Length of the center arm",
default=3.0,
@@ -847,7 +847,7 @@ class AddNJoint(Operator):
bl_description = "Construct a n-joint pipe mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="The radius of the pipe",
default=1.0,
@@ -855,21 +855,21 @@ class AddNJoint(Operator):
max=100.0,
unit="LENGTH"
)
- div = IntProperty(
+ div: IntProperty(
name="Divisions",
description="Number of vertices (divisions)",
default=32,
min=4,
max=256
)
- number = IntProperty(
+ number: IntProperty(
name="Arms / Joints",
description="Number of joints / arms",
default=5,
min=2,
max=99999
)
- length = FloatProperty(
+ length: FloatProperty(
name="Length",
description="Length of each joint / arm",
default=3.0,
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py
index 680267cb..ec41cc4f 100644
--- a/add_mesh_extra_objects/add_mesh_pyramid.py
+++ b/add_mesh_extra_objects/add_mesh_pyramid.py
@@ -107,31 +107,31 @@ class AddPyramid(Operator, AddObjectHelper):
bl_description = "Construct a step pyramid mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- num_sides = IntProperty(
+ num_sides: IntProperty(
name="Number Sides",
description="How many sides each step will have",
min=3, max=20,
default=4
)
- num_steps = IntProperty(
+ num_steps: IntProperty(
name="Number of Steps",
description="How many steps for the overall pyramid",
min=1, max=20,
default=10
)
- width = FloatProperty(
+ width: FloatProperty(
name="Initial Width",
description="Initial base step width",
min=0.01, max=100.0,
default=2
)
- height = FloatProperty(
+ height: FloatProperty(
name="Height",
description="How tall each step will be",
min=0.01, max=100.0,
default=0.1
)
- reduce_by = FloatProperty(
+ reduce_by: FloatProperty(
name="Reduce Step By",
description="How much to reduce each succeeding step by",
min=.01, max=2.0,
diff --git a/add_mesh_extra_objects/add_mesh_round_brilliant.py b/add_mesh_extra_objects/add_mesh_round_brilliant.py
index d8310c42..b5c0f869 100644
--- a/add_mesh_extra_objects/add_mesh_round_brilliant.py
+++ b/add_mesh_extra_objects/add_mesh_round_brilliant.py
@@ -305,7 +305,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
# set user options
- s = IntProperty(
+ s: IntProperty(
name="Segments",
description="Longitudial segmentation",
step=1,
@@ -314,7 +314,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=16,
subtype='FACTOR'
)
- table_w = FloatProperty(
+ table_w: FloatProperty(
name="Table width",
description="Width of table",
min=0.001,
@@ -322,7 +322,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.53,
subtype='PERCENTAGE'
)
- crown_h = FloatProperty(
+ crown_h: FloatProperty(
name="Crown height",
description="Height of crown",
min=0.0,
@@ -330,7 +330,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.162,
subtype='PERCENTAGE'
)
- girdle_t = FloatProperty(
+ girdle_t: FloatProperty(
name="Girdle height",
description="Height of girdle",
min=0.0,
@@ -338,17 +338,17 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.017,
subtype='PERCENTAGE'
)
- girdle_real = BoolProperty(
+ girdle_real: BoolProperty(
name="Real girdle",
description="More beautiful girdle; has more polygons",
default=True
)
- g_real_smooth = BoolProperty(
+ g_real_smooth: BoolProperty(
name="Smooth girdle",
description="smooth shading for girdle, only available for real girdle",
default=False
)
- pavi_d = FloatProperty(
+ pavi_d: FloatProperty(
name="Pavilion depth",
description="Height of pavilion",
min=0.0,
@@ -356,7 +356,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.431,
subtype='PERCENTAGE'
)
- bezel_f = FloatProperty(
+ bezel_f: FloatProperty(
name="Upper facet factor",
description="Determines the form of bezel and upper girdle facets",
min=0.0,
@@ -364,7 +364,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.250,
subtype='PERCENTAGE'
)
- pavi_f = FloatProperty(
+ pavi_f: FloatProperty(
name="Lower facet factor",
description="Determines the form of pavilion and lower girdle facets",
min=0.001,
@@ -372,7 +372,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.400,
subtype='PERCENTAGE'
)
- culet = FloatProperty(
+ culet: FloatProperty(
name="Culet size",
description="0: no culet (default)",
min=0.0,
@@ -380,7 +380,7 @@ class MESH_OT_primitive_brilliant_add(Operator):
default=0.0,
subtype='PERCENTAGE'
)
- keep_lga = BoolProperty(
+ keep_lga: BoolProperty(
name="Retain lower angle",
description="If culet > 0, retains angle of pavilion facets",
default=False
diff --git a/add_mesh_extra_objects/add_mesh_round_cube.py b/add_mesh_extra_objects/add_mesh_round_cube.py
index dca438ae..6c39e799 100644
--- a/add_mesh_extra_objects/add_mesh_round_cube.py
+++ b/add_mesh_extra_objects/add_mesh_round_cube.py
@@ -339,27 +339,27 @@ class AddRoundCube(Operator, object_utils.AddObjectHelper):
sanity_check_verts = 200000
vert_count = 0
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
description="Radius of vertices for sphere, capsule or cuboid bevel",
default=1.0, min=0.0, soft_min=0.01, step=10
)
- size = FloatVectorProperty(
+ size: FloatVectorProperty(
name="Size",
description="Size",
subtype='XYZ',
)
- arc_div = IntProperty(
+ arc_div: IntProperty(
name="Arc Divisions",
description="Arc curve divisions, per quadrant, 0=derive from Linear",
default=4, min=1
)
- lin_div = FloatProperty(
+ lin_div: FloatProperty(
name="Linear Divisions",
description="Linear unit divisions (Edges/Faces), 0=derive from Arc",
default=0.0, min=0.0, step=100, precision=1
)
- div_type = EnumProperty(
+ div_type: EnumProperty(
name='Type',
description='Division type',
items=(
@@ -368,11 +368,11 @@ class AddRoundCube(Operator, object_utils.AddObjectHelper):
('ALL', 'All', 'Sphere / Corners, extruded edges and faces (size)')),
default='CORNERS',
)
- odd_axis_align = BoolProperty(
+ odd_axis_align: BoolProperty(
name='Odd Axis Align',
description='Align odd arc divisions with axes (Note: triangle corners!)',
)
- no_limit = BoolProperty(
+ no_limit: BoolProperty(
name='No Limit',
description='Do not limit to ' + str(sanity_check_verts) + ' vertices (sanity check)',
options={'HIDDEN'}
diff --git a/add_mesh_extra_objects/add_mesh_solid.py b/add_mesh_extra_objects/add_mesh_solid.py
index e8127e34..98172d37 100644
--- a/add_mesh_extra_objects/add_mesh_solid.py
+++ b/add_mesh_extra_objects/add_mesh_solid.py
@@ -328,7 +328,7 @@ class Solids(bpy.types.Operator):
bl_description = "Add one of the Platonic, Archimedean or Catalan solids"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- source = EnumProperty(
+ source: EnumProperty(
items=(("4", "Tetrahedron", ""),
("6", "Hexahedron", ""),
("8", "Octahedron", ""),
@@ -337,7 +337,7 @@ class Solids(bpy.types.Operator):
name="Source",
description="Starting point of your solid"
)
- size = FloatProperty(
+ size: FloatProperty(
name="Size",
description="Radius of the sphere through the vertices",
min=0.01,
@@ -346,7 +346,7 @@ class Solids(bpy.types.Operator):
soft_max=100,
default=1.0
)
- vTrunc = FloatProperty(
+ vTrunc: FloatProperty(
name="Vertex Truncation",
description="Amount of vertex truncation",
min=0.0,
@@ -357,7 +357,7 @@ class Solids(bpy.types.Operator):
precision=3,
step=0.5
)
- eTrunc = FloatProperty(
+ eTrunc: FloatProperty(
name="Edge Truncation",
description="Amount of edge truncation",
min=0.0,
@@ -368,24 +368,24 @@ class Solids(bpy.types.Operator):
precision=3,
step=0.2
)
- snub = EnumProperty(
+ snub: EnumProperty(
items=(("None", "No Snub", ""),
("Left", "Left Snub", ""),
("Right", "Right Snub", "")),
name="Snub",
description="Create the snub version"
)
- dual = BoolProperty(
+ dual: BoolProperty(
name="Dual",
description="Create the dual of the current solid",
default=False
)
- keepSize = BoolProperty(
+ keepSize: BoolProperty(
name="Keep Size",
description="Keep the whole solid at a constant size",
default=False
)
- preset = EnumProperty(
+ preset: EnumProperty(
items=(("0", "Custom", ""),
("t4", "Truncated Tetrahedron", ""),
("r4", "Cuboctahedron", ""),
diff --git a/add_mesh_extra_objects/add_mesh_star.py b/add_mesh_extra_objects/add_mesh_star.py
index b7e420fe..411fa91d 100644
--- a/add_mesh_extra_objects/add_mesh_star.py
+++ b/add_mesh_extra_objects/add_mesh_star.py
@@ -148,28 +148,28 @@ class AddStar(bpy.types.Operator):
bl_description = "Construct a star mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- points = IntProperty(
+ points: IntProperty(
name="Points",
description="Number of points for the star",
min=2,
max=256,
default=5
)
- outer_radius = FloatProperty(
+ outer_radius: FloatProperty(
name="Outer Radius",
description="Outer radius of the star",
min=0.01,
max=9999.0,
default=1.0
)
- innter_radius = FloatProperty(
+ innter_radius: FloatProperty(
name="Inner Radius",
description="Inner radius of the star",
min=0.01,
max=9999.0,
default=0.5
)
- height = FloatProperty(name="Height",
+ height: FloatProperty(name="Height",
description="Height of the star",
min=0.01,
max=9999.0,
diff --git a/add_mesh_extra_objects/add_mesh_supertoroid.py b/add_mesh_extra_objects/add_mesh_supertoroid.py
index 65533315..5836ed5e 100644
--- a/add_mesh_extra_objects/add_mesh_supertoroid.py
+++ b/add_mesh_extra_objects/add_mesh_supertoroid.py
@@ -142,48 +142,48 @@ class add_supertoroid(bpy.types.Operator):
bl_description = "Construct a supertoroid mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- R = FloatProperty(
+ R: FloatProperty(
name="Big radius",
description="The radius inside the tube",
default=1.0,
min=0.01, max=100.0
)
- r = FloatProperty(
+ r: FloatProperty(
name="Small radius",
description="The radius of the tube",
default=0.3,
min=0.01, max=100.0
)
- u = IntProperty(
+ u: IntProperty(
name="U-segments",
description="Radial segmentation",
default=16,
min=3, max=265
)
- v = IntProperty(
+ v: IntProperty(
name="V-segments",
description="Lateral segmentation",
default=8,
min=3, max=265
)
- n1 = FloatProperty(
+ n1: FloatProperty(
name="Ring manipulator",
description="Manipulates the shape of the Ring",
default=1.0,
min=0.01, max=100.0
)
- n2 = FloatProperty(
+ n2: FloatProperty(
name="Cross manipulator",
description="Manipulates the shape of the cross-section",
default=1.0,
min=0.01, max=100.0
)
- ie = BoolProperty(
+ ie: BoolProperty(
name="Use Int. and Ext. radii",
description="Use internal and external radii",
default=False
)
- edit = BoolProperty(
+ edit: BoolProperty(
name="",
description="",
default=False,
diff --git a/add_mesh_extra_objects/add_mesh_teapot.py b/add_mesh_extra_objects/add_mesh_teapot.py
index 3f117d72..1dabc520 100644
--- a/add_mesh_extra_objects/add_mesh_teapot.py
+++ b/add_mesh_extra_objects/add_mesh_teapot.py
@@ -17,13 +17,13 @@ class AddTeapot(bpy.types.Operator):
bl_description = "Construct a teapot or teaspoon mesh"
bl_options = {"REGISTER", "UNDO"}
- resolution = IntProperty(
+ resolution: IntProperty(
name="Resolution",
description="Resolution of the Teapot",
default=5,
min=2, max=15,
)
- objecttype = EnumProperty(
+ objecttype: EnumProperty(
name="Object Type",
description="Type of Bezier Object",
items=(('1', "Teapot", "Construct a teapot mesh"),
diff --git a/add_mesh_extra_objects/add_mesh_torusknot.py b/add_mesh_extra_objects/add_mesh_torusknot.py
index 1cdac6b6..7004fab4 100644
--- a/add_mesh_extra_objects/add_mesh_torusknot.py
+++ b/add_mesh_extra_objects/add_mesh_torusknot.py
@@ -98,13 +98,13 @@ class AddTorusKnot(bpy.types.Operator):
bl_description = "Construct a torus knot mesh"
bl_options = {"REGISTER", "UNDO"}
- resolution = IntProperty(
+ resolution: IntProperty(
name="Resolution",
description="Resolution of the Torus Knot",
default=80,
min=30, max=256
)
- objecttype = IntProperty(
+ objecttype: IntProperty(
name="Knot Type",
description="Type of Knot",
default=1,
diff --git a/add_mesh_extra_objects/add_mesh_triangles.py b/add_mesh_extra_objects/add_mesh_triangles.py
index 2cccd0fb..8a662547 100644
--- a/add_mesh_extra_objects/add_mesh_triangles.py
+++ b/add_mesh_extra_objects/add_mesh_triangles.py
@@ -74,33 +74,33 @@ class MakeTriangle(Operator):
]
# add definitions for some manipulation buttons
- flipX = BoolProperty(
+ flipX: BoolProperty(
name="Flip X sign",
description="Draw on the other side of the X axis (Mirror on Y axis)",
default=False
)
- flipY = BoolProperty(
+ flipY: BoolProperty(
name="Flip Y sign",
description="Draw on the other side of the Y axis (Mirror on X axis)",
default=False
)
- scale = FloatProperty(
+ scale: FloatProperty(
name="Scale",
description="Triangle scale",
default=1.0,
min=1.0
)
- triangleType = EnumProperty(
+ triangleType: EnumProperty(
items=triangleTypeList,
name="Type",
description="Triangle Type"
)
- triangleFace = EnumProperty(
+ triangleFace: EnumProperty(
items=triangleFaceList,
name="Face types",
description="Triangle Face Types"
)
- at_3Dcursor = BoolProperty(
+ at_3Dcursor: BoolProperty(
name="Use 3D Cursor",
description="Draw the triangle where the 3D cursor is",
default=False
diff --git a/add_mesh_extra_objects/add_mesh_twisted_torus.py b/add_mesh_extra_objects/add_mesh_twisted_torus.py
index f66324a4..17d3f1a9 100644
--- a/add_mesh_extra_objects/add_mesh_twisted_torus.py
+++ b/add_mesh_extra_objects/add_mesh_twisted_torus.py
@@ -139,7 +139,7 @@ class AddTwistedTorus(bpy.types.Operator):
bl_description = "Construct a twisted torus mesh"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- major_radius = FloatProperty(
+ major_radius: FloatProperty(
name="Major Radius",
description="Radius from the origin to the"
" center of the cross section",
@@ -147,47 +147,47 @@ class AddTwistedTorus(bpy.types.Operator):
max=100.0,
default=1.0
)
- minor_radius = FloatProperty(
+ minor_radius: FloatProperty(
name="Minor Radius",
description="Radius of the torus' cross section",
min=0.01,
max=100.0,
default=0.25
)
- major_segments = IntProperty(
+ major_segments: IntProperty(
name="Major Segments",
description="Number of segments for the main ring of the torus",
min=3,
max=256,
default=48
)
- minor_segments = IntProperty(
+ minor_segments: IntProperty(
name="Minor Segments",
description="Number of segments for the minor ring of the torus",
min=3,
max=256,
default=12
)
- twists = IntProperty(
+ twists: IntProperty(
name="Twists",
description="Number of twists of the torus",
min=0,
max=256,
default=1
)
- use_abso = BoolProperty(
+ use_abso: BoolProperty(
name="Use Int/Ext Controls",
description="Use the Int/Ext controls for torus dimensions",
default=False
)
- abso_major_rad = FloatProperty(
+ abso_major_rad: FloatProperty(
name="Exterior Radius",
description="Total Exterior Radius of the torus",
min=0.01,
max=100.0,
default=1.0
)
- abso_minor_rad = FloatProperty(
+ abso_minor_rad: FloatProperty(
name="Inside Radius",
description="Total Interior Radius of the torus",
min=0.01,
diff --git a/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py b/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py
index ab3b0e9b..e3ea4009 100644
--- a/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py
+++ b/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py
@@ -34,23 +34,23 @@ class GenerateGeodesicDome(Operator):
bl_options = {'REGISTER', 'UNDO'}
# PKHG_NEW saving and loading parameters
- save_parameters = BoolProperty(
+ save_parameters: BoolProperty(
name="Save params",
description="Activation save */tmp/GD_0.GD",
default=False
)
- load_parameters = BoolProperty(
+ load_parameters: BoolProperty(
name="Load params",
description="Read */tmp/GD_0.GD",
default=False
)
- gd_help_text_width = IntProperty(
+ gd_help_text_width: IntProperty(
name="Text Width",
description="The width above which the text wraps",
default=60,
max=180, min=20
)
- mainpages = EnumProperty(
+ mainpages: EnumProperty(
name="Menu",
description="Create Faces, Struts & Hubs",
items=[("Main", "Main", "Geodesic objects"),
@@ -62,7 +62,7 @@ class GenerateGeodesicDome(Operator):
default='Main'
)
# for Faces
- facetype_menu = EnumProperty(
+ facetype_menu: EnumProperty(
name="Faces",
description="choose a facetype",
items=[("0", "strip", "strip"),
@@ -79,43 +79,43 @@ class GenerateGeodesicDome(Operator):
],
default='0'
)
- facetoggle = BoolProperty(
+ facetoggle: BoolProperty(
name="Activate: Face Object",
description="Activate Faces for Geodesic object",
default=False
)
- face_use_imported_object = BoolProperty(
+ face_use_imported_object: BoolProperty(
name="Use: Imported Object",
description="Activate faces on your Imported object",
default=False
)
- facewidth = FloatProperty(
+ facewidth: FloatProperty(
name="Face Width",
min=-1, soft_min=0.001, max=4,
default=.50
)
- fwtog = BoolProperty(
+ fwtog: BoolProperty(
name="Width tweak",
default=False
)
- faceheight = FloatProperty(
+ faceheight: FloatProperty(
name="Face Height",
min=0.001, max=4,
default=1
)
- fhtog = BoolProperty(
+ fhtog: BoolProperty(
name="Height tweak",
default=False
)
- face_detach = BoolProperty(
+ face_detach: BoolProperty(
name="Detach Faces",
default=False
)
- fmeshname = StringProperty(
+ fmeshname: StringProperty(
name="Face Mesh name",
default="defaultface"
)
- geodesic_types = EnumProperty(
+ geodesic_types: EnumProperty(
name="Objects",
description="Choose Geodesic, Grid, Cylinder, Parabola, "
"Torus, Sphere, Import your mesh or Superparameters",
@@ -129,12 +129,12 @@ class GenerateGeodesicDome(Operator):
],
default='Geodesic'
)
- import_mesh_name = StringProperty(
+ import_mesh_name: StringProperty(
name="Mesh to import",
description="the name has to be the name of a meshobject",
default="None"
)
- base_type = EnumProperty(
+ base_type: EnumProperty(
name="Hedron",
description="Choose between Tetrahedron, Octahedron, Icosahedron ",
items=[("Tetrahedron", "Tetrahedron", "Generate Tetrahedron"),
@@ -143,7 +143,7 @@ class GenerateGeodesicDome(Operator):
],
default='Tetrahedron'
)
- orientation = EnumProperty(
+ orientation: EnumProperty(
name="Point^",
description="Point (Vert), Edge or Face pointing upwards",
items=[("PointUp", "PointUp", "Point up"),
@@ -152,7 +152,7 @@ class GenerateGeodesicDome(Operator):
],
default='PointUp'
)
- geodesic_class = EnumProperty(
+ geodesic_class: EnumProperty(
name="Class",
description="Subdivide Basic/Triacon",
items=[("Class 1", "Class 1", "class one"),
@@ -160,7 +160,7 @@ class GenerateGeodesicDome(Operator):
],
default='Class 1'
)
- tri_hex_star = EnumProperty(
+ tri_hex_star: EnumProperty(
name="Shape",
description="Choose between tri hex star face types",
items=[("tri", "tri", "tri faces"),
@@ -169,7 +169,7 @@ class GenerateGeodesicDome(Operator):
],
default='tri'
)
- spherical_flat = EnumProperty(
+ spherical_flat: EnumProperty(
name="Round",
description="Choose between spherical or flat ",
items=[("spherical", "spherical", "Generate spherical"),
@@ -177,280 +177,280 @@ class GenerateGeodesicDome(Operator):
],
default='spherical'
)
- use_imported_mesh = BoolProperty(
+ use_imported_mesh: BoolProperty(
name="use import",
description="Use an imported mesh",
default=False
)
# Cylinder
- cyxres = IntProperty(
+ cyxres: IntProperty(
name="Resolution x/y",
min=3, max=32,
description="Number of faces around x/y",
default=5
)
- cyyres = IntProperty(
+ cyyres: IntProperty(
name="Resolution z",
min=3, max=32,
description="Number of faces in z direction",
default=5
)
- cyxsz = FloatProperty(
+ cyxsz: FloatProperty(
name="Scale x/y",
min=0.01, max=10,
description="Scale in x/y direction",
default=1
)
- cyysz = FloatProperty(
+ cyysz: FloatProperty(
name="Scale z",
min=0.01, max=10,
description="Scale in z direction",
default=1
)
- cyxell = FloatProperty(
+ cyxell: FloatProperty(
name="Stretch x",
min=0.001, max=4,
description="Stretch in x direction",
default=1
)
- cygap = FloatProperty(
+ cygap: FloatProperty(
name="Gap",
min=-2, max=2,
description="Shrink in % around radius",
default=1
)
- cygphase = FloatProperty(
+ cygphase: FloatProperty(
name="Phase", min=-4, max=4,
description="Rotate around pivot x/y",
default=0
)
# Parabola
- paxres = IntProperty(
+ paxres: IntProperty(
name="Resolution x/y",
min=3, max=32,
description="Number of faces around x/y",
default=5
)
- payres = IntProperty(
+ payres: IntProperty(
name="Resolution z",
min=3, max=32,
description="Number of faces in z direction",
default=5
)
- paxsz = FloatProperty(
+ paxsz: FloatProperty(
name="Scale x/y",
min=0.001, max=10,
description="scale in x/y direction",
default=0.30
)
- paysz = FloatProperty(
+ paysz: FloatProperty(
name="Scale z",
min=0.001, max=10,
description="Scale in z direction",
default=1
)
- paxell = FloatProperty(
+ paxell: FloatProperty(
name="Stretch x",
min=0.001, max=4,
description="Stretch in x direction",
default=1
)
- pagap = FloatProperty(
+ pagap: FloatProperty(
name="Gap",
min=-2, max=2,
description="Shrink in % around radius",
default=1
)
- pagphase = FloatProperty(
+ pagphase: FloatProperty(
name="Phase",
min=-4, max=4,
description="Rotate around pivot x/y",
default=0
)
# Torus
- ures = IntProperty(
+ ures: IntProperty(
name="Resolution x/y",
min=3, max=32,
description="Number of faces around x/y",
default=8)
- vres = IntProperty(
+ vres: IntProperty(
name="Resolution z",
min=3, max=32,
description="Number of faces in z direction",
default=8)
- urad = FloatProperty(
+ urad: FloatProperty(
name="Radius x/y",
min=0.001, max=10,
description="Radius in x/y plane",
default=1
)
- vrad = FloatProperty(
+ vrad: FloatProperty(
name="Radius z",
min=0.001, max=10,
description="Radius in z plane",
default=0.250
)
- uellipse = FloatProperty(
+ uellipse: FloatProperty(
name="Stretch x",
min=0.001, max=10,
description="Number of faces in z direction",
default=1
)
- vellipse = FloatProperty(
+ vellipse: FloatProperty(
name="Stretch z",
min=0.001, max=10,
description="Number of faces in z direction",
default=1
)
- upart = FloatProperty(
+ upart: FloatProperty(
name="Gap x/y",
min=-4, max=4,
description="Shrink faces around x/y",
default=1
)
- vpart = FloatProperty(
+ vpart: FloatProperty(
name="Gap z",
min=-4, max=4,
description="Shrink faces in z direction",
default=1
)
- ugap = FloatProperty(
+ ugap: FloatProperty(
name="Phase x/y",
min=-4, max=4,
description="Rotate around pivot x/y",
default=0
)
- vgap = FloatProperty(
+ vgap: FloatProperty(
name="Phase z",
min=-4, max=4,
description="Rotate around pivot z",
default=0
)
- uphase = FloatProperty(
+ uphase: FloatProperty(
name="uphase",
min=-4, max=4,
description="Number of faces in z direction",
default=0
)
- vphase = FloatProperty(
+ vphase: FloatProperty(
name="vphase",
min=-4, max=4,
description="Number of faces in z direction",
default=0
)
- uexp = FloatProperty(
+ uexp: FloatProperty(
name="uexp",
min=-4, max=4,
description="Number of faces in z direction",
default=0
)
- vexp = FloatProperty(
+ vexp: FloatProperty(
name="vexp",
min=-4, max=4,
description="Number of faces in z direction",
default=0
)
- usuper = FloatProperty(
+ usuper: FloatProperty(
name="usuper",
min=-4, max=4,
description="First set of superform parameters",
default=2
)
- vsuper = FloatProperty(
+ vsuper: FloatProperty(
name="vsuper",
min=-4, max=4,
description="Second set of superform parameters",
default=2
)
- utwist = FloatProperty(
+ utwist: FloatProperty(
name="Twist x/y",
min=-4, max=4,
description="Use with superformular u",
default=0
)
- vtwist = FloatProperty(
+ vtwist: FloatProperty(
name="Twist z",
min=-4, max=4,
description="Use with superformular v",
default=0
)
# Sphere
- bures = IntProperty(
+ bures: IntProperty(
name="Resolution x/y",
min=3, max=32,
description="Number of faces around x/y",
default=8
)
- bvres = IntProperty(
+ bvres: IntProperty(
name="Resolution z",
min=3, max=32,
description="Number of faces in z direction",
default=8
)
- burad = FloatProperty(
+ burad: FloatProperty(
name="Radius",
min=-4, max=4,
description="overall radius",
default=1
)
- bupart = FloatProperty(
+ bupart: FloatProperty(
name="Gap x/y",
min=-4, max=4,
description="Shrink faces around x/y",
default=1
)
- bvpart = FloatProperty(
+ bvpart: FloatProperty(
name="Gap z",
min=-4, max=4,
description="Shrink faces in z direction",
default=1
)
- buphase = FloatProperty(
+ buphase: FloatProperty(
name="Phase x/y",
min=-4, max=4,
description="Rotate around pivot x/y",
default=0
)
- bvphase = FloatProperty(
+ bvphase: FloatProperty(
name="Phase z",
min=-4, max=4,
description="Rotate around pivot z",
default=0
)
- buellipse = FloatProperty(
+ buellipse: FloatProperty(
name="Stretch x",
min=0.001, max=4,
description="Stretch in the x direction",
default=1
)
- bvellipse = FloatProperty(
+ bvellipse: FloatProperty(
name="Stretch z",
min=0.001, max=4,
description="Stretch in the z direction",
default=1
)
# Grid
- grxres = IntProperty(
+ grxres: IntProperty(
name="Resolution x",
min=2, soft_max=10, max=20,
description="Number of faces in x direction",
default=5
)
- gryres = IntProperty(
+ gryres: IntProperty(
name="Resolution z",
min=2, soft_min=2,
soft_max=10, max=20,
description="Number of faces in x direction",
default=2
)
- grxsz = FloatProperty(
+ grxsz: FloatProperty(
name="X size",
min=1, soft_min=0.01,
soft_max=5, max=10,
description="X size",
default=2.0
)
- grysz = FloatProperty(
+ grysz: FloatProperty(
name="Y size",
min=1, soft_min=0.01,
soft_max=5, max=10,
@@ -459,66 +459,66 @@ class GenerateGeodesicDome(Operator):
)
# PKHG_TODO_??? what means cart
- cart = IntProperty(
+ cart: IntProperty(
name="cart",
min=0, max=2,
default=0
)
- frequency = IntProperty(
+ frequency: IntProperty(
name="Frequency",
min=1, max=8,
description="Subdivide base triangles",
default=1
)
- eccentricity = FloatProperty(
+ eccentricity: FloatProperty(
name="Eccentricity",
min=0.01, max=4,
description="Scaling in x/y dimension",
default=1
)
- squish = FloatProperty(
+ squish: FloatProperty(
name="Squish",
min=0.01,
soft_max=4, max=10,
description="Scaling in z dimension",
default=1
)
- radius = FloatProperty(
+ radius: FloatProperty(
name="Radius",
min=0.01,
soft_max=4, max=10,
description="Overall radius",
default=1
)
- squareness = FloatProperty(
+ squareness: FloatProperty(
name="Square x/y",
min=0.1, max=5,
description="Superelipse action in x/y",
default=2
)
- squarez = FloatProperty(
+ squarez: FloatProperty(
name="Square z",
min=0.1, soft_max=5, max=10,
description="Superelipse action in z",
default=2
)
- baselevel = IntProperty(
+ baselevel: IntProperty(
name="baselevel",
default=5
)
- dual = BoolProperty(
+ dual: BoolProperty(
name="Dual",
description="Faces become verts, "
"verts become faces, edges flip",
default=False
)
- rotxy = FloatProperty(
+ rotxy: FloatProperty(
name="Rotate x/y",
min=-4, max=4,
description="Rotate superelipse action in x/y",
default=0
)
- rotz = FloatProperty(
+ rotz: FloatProperty(
name="Rotate z",
min=-4, max=4,
description="Rotate superelipse action in z",
@@ -526,94 +526,94 @@ class GenerateGeodesicDome(Operator):
)
# for choice of superformula
- uact = BoolProperty(
+ uact: BoolProperty(
name="Superformula u (x/y)",
description="Activate superformula u parameters",
default=False
)
- vact = BoolProperty(
+ vact: BoolProperty(
name="Superformula v (z)",
description="Activate superformula v parameters",
default=False
)
- um = FloatProperty(
+ um: FloatProperty(
name="Pinch x/y",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Pinch the mesh on x/y",
default=3
)
- un1 = FloatProperty(
+ un1: FloatProperty(
name="Squash x/y",
min=0, soft_min=0.1,
soft_max=5, max=20,
description="Squash the mesh x/y",
default=1
)
- un2 = FloatProperty(
+ un2: FloatProperty(
name="Inflate x/y",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Inflate the mesh x/y",
default=1
)
- un3 = FloatProperty(
+ un3: FloatProperty(
name="Roundify x/y",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Roundify x/y",
default=1
)
- ua = FloatProperty(
+ ua: FloatProperty(
name="Shrink",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Shrink",
default=1.0
)
- ub = FloatProperty(
+ ub: FloatProperty(
name="Shrink x/y",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Shrink y/x",
default=4.0
)
- vm = FloatProperty(
+ vm: FloatProperty(
name="Scale Z Base",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Scale Z Base",
default=1
)
- vn1 = FloatProperty(
+ vn1: FloatProperty(
name="Scale lock Top Z",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Scale lock Top Z",
default=1
)
- vn2 = FloatProperty(
+ vn2: FloatProperty(
name="Inflate Base",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Inflate Base",
default=1
)
- vn3 = FloatProperty(
+ vn3: FloatProperty(
name="Inflate",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Inflate",
default=1
)
- va = FloatProperty(
+ va: FloatProperty(
name="Scale 1",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="Scale 1",
default=1
)
- vb = FloatProperty(
+ vb: FloatProperty(
name="Scale 2",
min=0, soft_min=0.1,
soft_max=5, max=10,
@@ -621,28 +621,28 @@ class GenerateGeodesicDome(Operator):
default=1
)
- uturn = FloatProperty(
+ uturn: FloatProperty(
name="x/y Vert cycle",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="x/y Vert cycle",
default=0
)
- vturn = FloatProperty(
+ vturn: FloatProperty(
name="z Vert cycle",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="z Vert cycle",
default=0
)
- utwist = FloatProperty(
+ utwist: FloatProperty(
name="x/y Twist cycle",
min=0, soft_min=0.1,
soft_max=5, max=10,
description="x/y Twist cycle",
default=0
)
- vtwist = FloatProperty(
+ vtwist: FloatProperty(
name="z Twist cycle",
min=0, soft_min=0.1,
soft_max=5, max=10,
@@ -650,113 +650,113 @@ class GenerateGeodesicDome(Operator):
default=0
)
# Strut
- struttype = IntProperty(
+ struttype: IntProperty(
name="Strut type",
default=0
)
- struttoggle = BoolProperty(
+ struttoggle: BoolProperty(
name="Use Struts",
default=False
)
- strutimporttoggle = BoolProperty(
+ strutimporttoggle: BoolProperty(
name="Strut import toggle",
default=False
)
- strutimpmesh = StringProperty(
+ strutimpmesh: StringProperty(
name="Strut import mesh",
default="None"
)
- strutwidth = FloatProperty(
+ strutwidth: FloatProperty(
name="Strut width",
min=-10, soft_min=5,
soft_max=5, max=10,
default=1
)
- swtog = BoolProperty(
+ swtog: BoolProperty(
name="Width enable",
default=False
)
- strutheight = FloatProperty(
+ strutheight: FloatProperty(
name="Strut height",
min=-5, soft_min=-1,
soft_max=5, max=10,
default=1
)
- shtog = BoolProperty(
+ shtog: BoolProperty(
name="Height tweak",
default=False
)
- strutshrink = FloatProperty(
+ strutshrink: FloatProperty(
name="Strut shrink",
min=0.001, max=4,
default=1
)
- sstog = BoolProperty(
+ sstog: BoolProperty(
name="Shrink tweak",
default=False
)
- stretch = FloatProperty(
+ stretch: FloatProperty(
name="Stretch",
min=-4, max=4,
default=1.0
)
- lift = FloatProperty(
+ lift: FloatProperty(
name="Lift",
min=0.001, max=10,
default=0
)
- smeshname = StringProperty(
+ smeshname: StringProperty(
name="Strut mesh name",
default="defaultstrut"
)
# Hubs
- hubtype = BoolProperty(
+ hubtype: BoolProperty(
name="Hub type",
description="not used",
default=True
)
- hubtoggle = BoolProperty(
+ hubtoggle: BoolProperty(
name="Use Hubs",
default=False
)
- hubimporttoggle = BoolProperty(
+ hubimporttoggle: BoolProperty(
name="New import",
description="Import a mesh",
default=False
)
- hubimpmesh = StringProperty(
+ hubimpmesh: StringProperty(
name="Hub mesh import",
description="Name of mesh to import",
default="None"
)
- hubwidth = FloatProperty(
+ hubwidth: FloatProperty(
name="Hub width",
min=0.01, max=10,
default=1
)
- hwtog = BoolProperty(
+ hwtog: BoolProperty(
name="Width tweak",
default=False
)
- hubheight = FloatProperty(
+ hubheight: FloatProperty(
name="Hub height",
min=0.01, max=10,
default=1
)
- hhtog = BoolProperty(
+ hhtog: BoolProperty(
name="Height tweak",
default=False
)
- hublength = FloatProperty(
+ hublength: FloatProperty(
name="Hub length",
min=0.1, max=10,
default=1
)
- hstog = BoolProperty(
+ hstog: BoolProperty(
name="Hub s tweak",
default=False
)
- hmeshname = StringProperty(
+ hmeshname: StringProperty(
name="Hub mesh name",
description="Name of an existing mesh needed!",
default="None"
diff --git a/add_mesh_extra_objects/mesh_discombobulator.py b/add_mesh_extra_objects/mesh_discombobulator.py
index bc0bfe67..f168e32b 100644
--- a/add_mesh_extra_objects/mesh_discombobulator.py
+++ b/add_mesh_extra_objects/mesh_discombobulator.py
@@ -577,7 +577,7 @@ class unchooseDoodad(Operator):
bl_description = "Remove the saved Doodad Object(s)"
bl_options = {'REGISTER'}
- remove_all = bpy.props.BoolProperty(
+ remove_all: bpy.props.BoolProperty(
name="Remove all Doodads",
default=False,
)