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_advanced_objects_menu
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_advanced_objects_menu')
-rw-r--r--add_advanced_objects_menu/__init__.py76
-rw-r--r--add_advanced_objects_menu/add_light_template.py8
-rw-r--r--add_advanced_objects_menu/add_mesh_aggregate.py32
-rw-r--r--add_advanced_objects_menu/arrange_on_curve.py18
-rw-r--r--add_advanced_objects_menu/copy2.py12
-rw-r--r--add_advanced_objects_menu/make_struts.py12
-rw-r--r--add_advanced_objects_menu/mesh_easylattice.py10
-rw-r--r--add_advanced_objects_menu/oscurart_chain_maker.py4
-rw-r--r--add_advanced_objects_menu/pixelate_3d.py6
-rw-r--r--add_advanced_objects_menu/random_box_structure.py16
-rw-r--r--add_advanced_objects_menu/rope_alpha.py36
-rw-r--r--add_advanced_objects_menu/trilighting.py18
12 files changed, 124 insertions, 124 deletions
diff --git a/add_advanced_objects_menu/__init__.py b/add_advanced_objects_menu/__init__.py
index 32bbbd7f..91ddcb18 100644
--- a/add_advanced_objects_menu/__init__.py
+++ b/add_advanced_objects_menu/__init__.py
@@ -202,12 +202,12 @@ def menu(self, context):
class AdvancedObjPreferences(AddonPreferences):
bl_idname = __name__
- show_menu_list = BoolProperty(
+ show_menu_list: BoolProperty(
name="Menu List",
description="Show/Hide the Add Menu items",
default=False
)
- show_panel_list = BoolProperty(
+ show_panel_list: BoolProperty(
name="Panels List",
description="Show/Hide the Panel items",
default=False
@@ -313,149 +313,149 @@ def adjust_selected_color_image(self, context):
class AdvancedObjProperties(PropertyGroup):
# cubester
# main properties
- cubester_check_audio = BoolProperty(
+ cubester_check_audio: BoolProperty(
name="",
default=False
)
- cubester_audio_image = EnumProperty(
+ cubester_audio_image: EnumProperty(
name="Input Type",
items=(("image", "Image",
"Use an Image as input for generating Geometry", "IMAGE_COL", 0),
("audio", "Audio",
"Use a Sound Strip as input for generating Geometry", "FILE_SOUND", 1))
)
- cubester_audio_file_length = IntProperty(
+ cubester_audio_file_length: IntProperty(
default=0
)
# audio
- cubester_audio_path = StringProperty(
+ cubester_audio_path: StringProperty(
default="",
name="Audio File",
subtype="FILE_PATH",
update=find_audio_length
)
- cubester_audio_min_freq = IntProperty(
+ cubester_audio_min_freq: IntProperty(
name="Minimum Frequency",
min=20, max=100000,
default=20
)
- cubester_audio_max_freq = IntProperty(
+ cubester_audio_max_freq: IntProperty(
name="Maximum Frequency",
min=21, max=999999,
default=5000
)
- cubester_audio_offset_type = EnumProperty(
+ cubester_audio_offset_type: EnumProperty(
name="Offset Type",
items=(("freq", "Frequency Offset", ""),
("frame", "Frame Offset", "")),
description="Type of offset per row of mesh"
)
- cubester_audio_frame_offset = IntProperty(
+ cubester_audio_frame_offset: IntProperty(
name="Frame Offset",
min=0, max=10,
default=2
)
- cubester_audio_block_layout = EnumProperty(
+ cubester_audio_block_layout: EnumProperty(
name="Block Layout",
items=(("rectangle", "Rectangular", ""),
("radial", "Radial", ""))
)
- cubester_audio_width_blocks = IntProperty(
+ cubester_audio_width_blocks: IntProperty(
name="Width Block Count",
min=1, max=10000,
default=5
)
- cubester_audio_length_blocks = IntProperty(
+ cubester_audio_length_blocks: IntProperty(
name="Length Block Count",
min=1, max=10000,
default=50
)
# image
- cubester_load_type = EnumProperty(
+ cubester_load_type: EnumProperty(
name="Image Input Type",
items=(("single", "Single Image", ""),
("multiple", "Image Sequence", ""))
)
- cubester_image = StringProperty(
+ cubester_image: StringProperty(
default="",
name=""
)
- cubester_load_image = StringProperty(
+ cubester_load_image: StringProperty(
default="",
name="Load Image",
subtype="FILE_PATH",
update=adjust_selected_image
)
- cubester_skip_images = IntProperty(
+ cubester_skip_images: IntProperty(
name="Image Step",
min=1, max=30,
default=1,
description="Step from image to image by this number"
)
- cubester_max_images = IntProperty(
+ cubester_max_images: IntProperty(
name="Max Number Of Images",
min=2, max=1000,
default=10,
description="Maximum number of images to be used"
)
- cubester_frame_step = IntProperty(
+ cubester_frame_step: IntProperty(
name="Frame Step Size",
min=1, max=10,
default=4,
description="The number of frames each picture is used"
)
- cubester_skip_pixels = IntProperty(
+ cubester_skip_pixels: IntProperty(
name="Skip # Pixels",
min=0, max=256,
default=64,
description="Skip this number of pixels before placing the next"
)
- cubester_mesh_style = EnumProperty(
+ cubester_mesh_style: EnumProperty(
name="Mesh Type",
items=(("blocks", "Blocks", ""),
("plane", "Plane", "")),
description="Compose mesh of multiple blocks or of a single plane"
)
- cubester_block_style = EnumProperty(
+ cubester_block_style: EnumProperty(
name="Block Style",
items=(("size", "Vary Size", ""),
("position", "Vary Position", "")),
description="Vary Z-size of block, or vary Z-position"
)
- cubester_height_scale = FloatProperty(
+ cubester_height_scale: FloatProperty(
name="Height Scale",
subtype="DISTANCE",
min=0.1, max=2,
default=0.2
)
- cubester_invert = BoolProperty(
+ cubester_invert: BoolProperty(
name="Invert Height",
default=False
)
# general adjustments
- cubester_size_per_hundred_pixels = FloatProperty(
+ cubester_size_per_hundred_pixels: FloatProperty(
name="Size Per 100 Blocks/Points",
subtype="DISTANCE",
min=0.001, max=5,
default=1
)
# material based stuff
- cubester_materials = EnumProperty(
+ cubester_materials: EnumProperty(
name="Material",
items=(("vertex", "Vertex Colors", ""),
("image", "Image", "")),
description="Color with vertex colors, or uv unwrap and use an image"
)
- cubester_use_image_color = BoolProperty(
+ cubester_use_image_color: BoolProperty(
name="Use Original Image Colors'?",
default=True,
description="Use original image colors, or replace with an another one"
)
- cubester_color_image = StringProperty(
+ cubester_color_image: StringProperty(
default="",
name=""
)
- cubester_load_color_image = StringProperty(
+ cubester_load_color_image: StringProperty(
default="",
name="Load Color Image",
subtype="FILE_PATH",
@@ -463,33 +463,33 @@ class AdvancedObjProperties(PropertyGroup):
)
cubester_vertex_colors = {}
# advanced
- cubester_advanced = BoolProperty(
+ cubester_advanced: BoolProperty(
name="Advanced Options",
default=False
)
- cubester_random_weights = BoolProperty(
+ cubester_random_weights: BoolProperty(
name="Random Weights",
default=False
)
- cubester_weight_r = FloatProperty(
+ cubester_weight_r: FloatProperty(
name="Red",
subtype="FACTOR",
min=0.01, max=1.0,
default=0.25
)
- cubester_weight_g = FloatProperty(
+ cubester_weight_g: FloatProperty(
name="Green",
subtype="FACTOR",
min=0.01, max=1.0,
default=0.25
)
- cubester_weight_b = FloatProperty(
+ cubester_weight_b: FloatProperty(
name="Blue",
subtype="FACTOR",
min=0.01, max=1.0,
default=0.25
)
- cubester_weight_a = FloatProperty(
+ cubester_weight_a: FloatProperty(
name="Alpha",
subtype="FACTOR",
min=0.01, max=1.0,
@@ -497,15 +497,15 @@ class AdvancedObjProperties(PropertyGroup):
)
# arrange_on_curve
- arrange_c_use_selected = BoolProperty(
+ arrange_c_use_selected: BoolProperty(
name="Use Selected",
description="Use the selected objects to duplicate",
default=True,
)
- arrange_c_obj_arranjar = StringProperty(
+ arrange_c_obj_arranjar: StringProperty(
name=""
)
- arrange_c_select_type = EnumProperty(
+ arrange_c_select_type: EnumProperty(
name="Type",
description="Select object or group",
items=[
diff --git a/add_advanced_objects_menu/add_light_template.py b/add_advanced_objects_menu/add_light_template.py
index 5b4fbc86..2ca87c3b 100644
--- a/add_advanced_objects_menu/add_light_template.py
+++ b/add_advanced_objects_menu/add_light_template.py
@@ -73,22 +73,22 @@ class OBJECT_OT_add_light_template(Operator):
camera = None
target = None
- bKeyLight = BoolProperty(
+ bKeyLight: BoolProperty(
name="Key Light",
description="Enable Key Light in the Scene",
default=True
)
- bFillLight = BoolProperty(
+ bFillLight: BoolProperty(
name="Fill Light",
description="Enable Fill Light in the Scene",
default=True
)
- bBackLight = BoolProperty(
+ bBackLight: BoolProperty(
name="Back Light",
description="Enable Back Light in the Scene",
default=True
)
- camera_constraint = BoolProperty(
+ camera_constraint: BoolProperty(
name="Camera Constraint",
description="Add a Constraint to the Camera Object",
default=False
diff --git a/add_advanced_objects_menu/add_mesh_aggregate.py b/add_advanced_objects_menu/add_mesh_aggregate.py
index 6072cb9c..b2ea399e 100644
--- a/add_advanced_objects_menu/add_mesh_aggregate.py
+++ b/add_advanced_objects_menu/add_mesh_aggregate.py
@@ -71,92 +71,92 @@ class OBJECT_OT_agregate_mesh(Operator):
"Needs at least two selected Mesh objects")
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
- volX = FloatProperty(
+ volX: FloatProperty(
name="Volume X",
min=0.1, max=25,
default=3,
description="The cloud around cursor"
)
- volY = FloatProperty(
+ volY: FloatProperty(
name="Volume Y",
min=0.1, max=25,
default=3,
description="The cloud around cursor"
)
- volZ = FloatProperty(
+ volZ: FloatProperty(
name="Volume Z",
min=0.1, max=25,
default=3,
description="The cloud around cursor"
)
- baseSca = FloatProperty(
+ baseSca: FloatProperty(
name="Scale",
min=0.01, max=5,
default=.25,
description="Particle Scale"
)
- varSca = FloatProperty(
+ varSca: FloatProperty(
name="Var",
min=0, max=1,
default=0,
description="Particle Scale Variation"
)
- rotX = FloatProperty(
+ rotX: FloatProperty(
name="Rot Var X",
min=0, max=2,
default=0,
description="X Rotation Variation"
)
- rotY = FloatProperty(
+ rotY: FloatProperty(
name="Rot Var Y",
min=0, max=2,
default=0,
description="Y Rotation Variation"
)
- rotZ = FloatProperty(
+ rotZ: FloatProperty(
name="Rot Var Z",
min=0, max=2,
default=1,
description="Z Rotation Variation"
)
- rSeed = IntProperty(
+ rSeed: IntProperty(
name="Random seed",
min=0, max=999999,
default=1,
description="Seed to feed random values"
)
- numP = IntProperty(
+ numP: IntProperty(
name="Number",
min=1,
max=9999, soft_max=500,
default=50,
description="Number of particles"
)
- nor = BoolProperty(
+ nor: BoolProperty(
name="Normal Oriented",
default=False,
description="Align Z axis with Faces normals"
)
- cent = BoolProperty(
+ cent: BoolProperty(
name="Use Face Center",
default=False,
description="Center on Faces"
)
- track = BoolProperty(
+ track: BoolProperty(
name="Cursor Follows",
default=False,
description="Cursor moves as structure grows / more compact results"
)
- anim = BoolProperty(
+ anim: BoolProperty(
name="Animatable",
default=False,
description="Sort faces so you can regrow with Build Modifier, materials are lost"
)
- refresh = BoolProperty(
+ refresh: BoolProperty(
name="Update",
default=False
)
- auto_refresh = BoolProperty(
+ auto_refresh: BoolProperty(
name="Auto",
description="Auto update spline",
default=False
diff --git a/add_advanced_objects_menu/arrange_on_curve.py b/add_advanced_objects_menu/arrange_on_curve.py
index bfed37a7..17c14b57 100644
--- a/add_advanced_objects_menu/arrange_on_curve.py
+++ b/add_advanced_objects_menu/arrange_on_curve.py
@@ -71,7 +71,7 @@ class DupliCurve(Operator):
bl_description = "Arange chosen / selected objects along the Active Curve"
bl_options = {'REGISTER', 'UNDO'}
- use_distance = EnumProperty(
+ use_distance: EnumProperty(
name="Arrangement",
items=[
("D", "Distance", "Objects are arranged depending on the distance", 0),
@@ -79,7 +79,7 @@ class DupliCurve(Operator):
("R", "Range", "Objects are arranged uniformly between the corners", 2)
]
)
- distance = FloatProperty(
+ distance: FloatProperty(
name="Distance",
description="Distance between Objects",
default=1.0,
@@ -87,44 +87,44 @@ class DupliCurve(Operator):
soft_min=0.1,
unit='LENGTH',
)
- object_qt = IntProperty(
+ object_qt: IntProperty(
name="Quantity",
description="Object amount",
default=2,
min=0,
)
- scale = FloatProperty(
+ scale: FloatProperty(
name="Scale",
description="Object Scale",
default=1.0,
min=FLT_MIN,
unit='LENGTH',
)
- Yaw = FloatProperty(
+ Yaw: FloatProperty(
name="X",
description="Rotate around the X axis (Yaw)",
default=0.0,
unit='ROTATION'
)
- Pitch = FloatProperty(
+ Pitch: FloatProperty(
default=0.0,
description="Rotate around the Y axis (Pitch)",
name="Y",
unit='ROTATION'
)
- Roll = FloatProperty(
+ Roll: FloatProperty(
default=0.0,
description="Rotate around the Z axis (Roll)",
name="Z",
unit='ROTATION'
)
- max_angle = FloatProperty(
+ max_angle: FloatProperty(
default=1.57079,
max=3.141592,
name="Angle",
unit='ROTATION'
)
- offset = FloatProperty(
+ offset: FloatProperty(
default=0.0,
name="Offset",
unit='LENGTH'
diff --git a/add_advanced_objects_menu/copy2.py b/add_advanced_objects_menu/copy2.py
index 9a94ac1d..9806ad0d 100644
--- a/add_advanced_objects_menu/copy2.py
+++ b/add_advanced_objects_menu/copy2.py
@@ -67,7 +67,7 @@ class Copy2(Operator):
('Y', "Y", "Secondary axis Y")]
return sec_list
- copytype = EnumProperty(
+ copytype: EnumProperty(
items=(('V', "Vertex",
"Paste the Copied Geometry to Vertices of the Active Object", 'VERTEXSEL', 0),
('E', "Edge",
@@ -75,27 +75,27 @@ class Copy2(Operator):
('F', "Face",
"Paste the Copied Geometry to Faces of the Active Object", 'FACESEL', 2)),
)
- copyfromobject = EnumProperty(
+ copyfromobject: EnumProperty(
name="Copy from",
description="Copy an Object from the list",
items=obj_list_cb
)
- priaxes = EnumProperty(
+ priaxes: EnumProperty(
description="Primary axes used for Copied Object orientation",
items=(('X', "X", "Along X"),
('Y', "Y", "Along Y"),
('Z', "Z", "Along Z")),
)
- edgescale = BoolProperty(
+ edgescale: BoolProperty(
name="Scale to fill edge",
default=False
)
- secaxes = EnumProperty(
+ secaxes: EnumProperty(
name="Secondary Axis",
description="Secondary axis used for Copied Object orientation",
items=sec_axes_list_cb
)
- scale = FloatProperty(
+ scale: FloatProperty(
name="Scale",
default=1.0,
min=0.0,
diff --git a/add_advanced_objects_menu/make_struts.py b/add_advanced_objects_menu/make_struts.py
index 76496237..91e794a2 100644
--- a/add_advanced_objects_menu/make_struts.py
+++ b/add_advanced_objects_menu/make_struts.py
@@ -506,36 +506,36 @@ class Struts(Operator):
"Needs an existing Active Mesh Object")
bl_options = {'REGISTER', 'UNDO'}
- ind = FloatProperty(
+ ind: FloatProperty(
name="Inside Diameter",
description="Diameter of inner surface",
min=0.0, soft_min=0.0,
max=100, soft_max=100,
default=0.04
)
- od = FloatProperty(
+ od: FloatProperty(
name="Outside Diameter",
description="Diameter of outer surface",
min=0.001, soft_min=0.001,
max=100, soft_max=100,
default=0.05
)
- manifold = BoolProperty(
+ manifold: BoolProperty(
name="Manifold",
description="Connect struts to form a single solid",
default=False
)
- solid = BoolProperty(
+ solid: BoolProperty(
name="Solid",
description="Create inner surface",
default=False
)
- loops = BoolProperty(
+ loops: BoolProperty(
name="Loops",
description="Create sub-surf friendly loops",
default=False
)
- segments = IntProperty(
+ segments: IntProperty(
name="Segments",
description="Number of segments around strut",
min=3, soft_min=3,
diff --git a/add_advanced_objects_menu/mesh_easylattice.py b/add_advanced_objects_menu/mesh_easylattice.py
index d2e608e9..585a343f 100644
--- a/add_advanced_objects_menu/mesh_easylattice.py
+++ b/add_advanced_objects_menu/mesh_easylattice.py
@@ -268,22 +268,22 @@ class EasyLattice(Operator):
bl_description = ("Create a Lattice modifier ready to edit\n"
"Needs an existing Active Mesh Object\n")
- lat_u = IntProperty(
+ lat_u: IntProperty(
name="Lattice u",
description="Points in u direction",
default=3
)
- lat_v = IntProperty(
+ lat_v: IntProperty(
name="Lattice v",
description="Points in v direction",
default=3
)
- lat_w = IntProperty(
+ lat_w: IntProperty(
name="Lattice w",
description="Points in w direction",
default=3
)
- lat_scale_factor = FloatProperty(
+ lat_scale_factor: FloatProperty(
name="Lattice scale factor",
description="Adjustment to the lattice scale",
default=1,
@@ -296,7 +296,7 @@ class EasyLattice(Operator):
('KEY_CATMULL_ROM', "Catmull-Rom", "Catmull-Rom Interpolation type"),
('KEY_BSPLINE', "BSpline", "Key BSpline Interpolation Type")
)
- lat_type = EnumProperty(
+ lat_type: EnumProperty(
name="Lattice Type",
description="Choose Lattice Type",
items=lat_types,
diff --git a/add_advanced_objects_menu/oscurart_chain_maker.py b/add_advanced_objects_menu/oscurart_chain_maker.py
index 6dcd6f80..8624dea5 100644
--- a/add_advanced_objects_menu/oscurart_chain_maker.py
+++ b/add_advanced_objects_menu/oscurart_chain_maker.py
@@ -245,11 +245,11 @@ class MESH_OT_primitive_oscurart_chain_add(Operator):
"The Active/Last Selected Object must be an Armature")
bl_options = {'REGISTER', 'UNDO'}
- curverig = BoolProperty(
+ curverig: BoolProperty(
name="Curve Rig",
default=False
)
- multiplier = FloatProperty(
+ multiplier: FloatProperty(
name="Scale",
default=1,
min=0.01, max=100.0
diff --git a/add_advanced_objects_menu/pixelate_3d.py b/add_advanced_objects_menu/pixelate_3d.py
index 567e882a..10032e62 100644
--- a/add_advanced_objects_menu/pixelate_3d.py
+++ b/add_advanced_objects_menu/pixelate_3d.py
@@ -73,21 +73,21 @@ class Pixelate(Operator):
"Needs an existing Active Mesh Object")
bl_options = {'REGISTER', 'UNDO'}
- size = FloatProperty(
+ size: FloatProperty(
name="Size",
min=.05, max=5,
default=.25,
description="Size of the cube / grid \n"
"Small values (below 0.1) can create a high polygon count"
)
- gap = IntProperty(
+ gap: IntProperty(
name="Gap",
min=0, max=90,
default=10,
subtype='PERCENTAGE',
description="Separation - percent of size"
)
- smooth = FloatProperty(
+ smooth: FloatProperty(
name="Smooth",
min=0, max=1,
default=.0,
diff --git a/add_advanced_objects_menu/random_box_structure.py b/add_advanced_objects_menu/random_box_structure.py
index ead19bd1..7d6edbdd 100644
--- a/add_advanced_objects_menu/random_box_structure.py
+++ b/add_advanced_objects_menu/random_box_structure.py
@@ -30,40 +30,40 @@ class makestructure(Operator):
"Needs an existing Active Mesh Object")
bl_options = {'REGISTER', 'UNDO'}
- dc = BoolProperty(
+ dc: BoolProperty(
name="Delete Base Mesh(es)",
default=True
)
- wh = BoolProperty(
+ wh: BoolProperty(
name="Stay Within Bounds",
description="Keeps cubes from exceeding base mesh bounds",
default=True
)
- uf = BoolProperty(
+ uf: BoolProperty(
name="Uniform Cube Quantity",
default=False
)
- qn = IntProperty(
+ qn: IntProperty(
name="Cube Quantity",
default=10,
min=1, max=1500
)
- mn = FloatVectorProperty(
+ mn: FloatVectorProperty(
name="Min Scales",
default=(0.1, 0.1, 0.1),
subtype='XYZ'
)
- mx = FloatVectorProperty(
+ mx: FloatVectorProperty(
name="Max Scales",
default=(2.0, 2.0, 2.0),
subtype='XYZ'
)
- lo = FloatVectorProperty(
+ lo: FloatVectorProperty(
name="XYZ Offset",
default=(0.0, 0.0, 0.0),
subtype='XYZ'
)
- rsd = FloatProperty(
+ rsd: FloatProperty(
name="Random Seed",
default=1
)
diff --git a/add_advanced_objects_menu/rope_alpha.py b/add_advanced_objects_menu/rope_alpha.py
index f0bd5dd7..03692412 100644
--- a/add_advanced_objects_menu/rope_alpha.py
+++ b/add_advanced_objects_menu/rope_alpha.py
@@ -204,40 +204,40 @@ class ClothRope(Operator):
bl_description = ("Create a new Scene with a Cloth modifier\n"
"Rope Simulation with hooked Helper Objects")
- ropelength = IntProperty(
+ ropelength: IntProperty(
name="Rope Length",
description="Length of the generated Rope",
default=5
)
- ropesegments = IntProperty(
+ ropesegments: IntProperty(
name="Rope Segments",
description="Number of the Rope Segments",
default=5
)
- qcr = IntProperty(
+ qcr: IntProperty(
name="Collision Quality",
description="Rope's Cloth modifier collsion quality",
min=1, max=20,
default=20
)
- substeps = IntProperty(
+ substeps: IntProperty(
name="Rope Substeps",
description="Rope's Cloth modifier quality",
min=4, max=80,
default=50
)
- resrope = IntProperty(
+ resrope: IntProperty(
name="Rope Resolution",
description="Rope's Bevel resolution",
default=5
)
- radiusrope = FloatProperty(
+ radiusrope: FloatProperty(
name="Radius",
description="Rope's Radius",
min=0.04, max=1,
default=0.04
)
- hide_emptys = BoolProperty(
+ hide_emptys: BoolProperty(
name="Hide Empties",
description="Hide Helper Objects",
default=False
@@ -502,60 +502,60 @@ class BallRope(Operator):
"Wrecking Ball on a rope")
# defaults rope ball
- ropelength2 = IntProperty(
+ ropelength2: IntProperty(
name="Rope Length",
description="Length of the Wrecking Ball rope",
default=10
)
- ropesegments2 = IntProperty(
+ ropesegments2: IntProperty(
name="Rope Segments",
description="Number of the Wrecking Ball rope segments",
min=0, max=999,
default=6
)
- radiuscubes = FloatProperty(
+ radiuscubes: FloatProperty(
name="Cube Radius",
description="Size of the Linked Cubes helpers",
default=0.5
)
- radiusrope = FloatProperty(
+ radiusrope: FloatProperty(
name="Rope Radius",
description="Radius of the Rope",
default=0.4
)
- worldsteps = IntProperty(
+ worldsteps: IntProperty(
name="World Steps",
description="Rigid Body Solver world steps per second (update)",
min=60, max=1000,
default=250
)
- solveriterations = IntProperty(
+ solveriterations: IntProperty(
name="Solver Iterations",
description="How many times the Rigid Body Solver should run",
min=10, max=100,
default=50
)
- massball = IntProperty(
+ massball: IntProperty(
name="Ball Mass",
description="Mass of the Wrecking Ball",
default=1
)
- resrope = IntProperty(
+ resrope: IntProperty(
name="Resolution",
description="Rope resolution",
default=4
)
- grados = FloatProperty(
+ grados: FloatProperty(
name="Degrees",
description="Angle of the Wrecking Ball compared to the Ground Plane",
default=45
)
- separacion = FloatProperty(
+ separacion: FloatProperty(
name="Link Cubes Gap",
description="Space between the Rope's Linked Cubes",
default=0.1
)
- hidecubes = BoolProperty(
+ hidecubes: BoolProperty(
name="Hide Link Cubes",
description="Hide helper geometry for the Rope",
default=False
diff --git a/add_advanced_objects_menu/trilighting.py b/add_advanced_objects_menu/trilighting.py
index c163a894..e14ec0e1 100644
--- a/add_advanced_objects_menu/trilighting.py
+++ b/add_advanced_objects_menu/trilighting.py
@@ -21,40 +21,40 @@ class TriLighting(Operator):
"Needs an existing Active Object")
bl_options = {'REGISTER', 'UNDO'}
- height = FloatProperty(
+ height: FloatProperty(
name="Height",
default=5
)
- distance = FloatProperty(
+ distance: FloatProperty(
name="Distance",
default=5,
min=0.1,
subtype="DISTANCE"
)
- energy = IntProperty(
+ energy: IntProperty(
name="Base Energy",
default=3,
min=1
)
- contrast = IntProperty(
+ contrast: IntProperty(
name="Contrast",
default=50,
min=-100, max=100,
subtype="PERCENTAGE"
)
- leftangle = IntProperty(
+ leftangle: IntProperty(
name="Left Angle",
default=26,
min=1, max=90,
subtype="ANGLE"
)
- rightangle = IntProperty(
+ rightangle: IntProperty(
name="Right Angle",
default=45,
min=1, max=90,
subtype="ANGLE"
)
- backangle = IntProperty(
+ backangle: IntProperty(
name="Back Angle",
default=235,
min=90, max=270,
@@ -67,14 +67,14 @@ class TriLighting(Operator):
('HEMI', "Hemi", "Hemi Light"),
('AREA', "Area", "Area Light")
]
- primarytype = EnumProperty(
+ primarytype: EnumProperty(
attr='tl_type',
name="Key Type",
description="Choose the types of Key Lights you would like",
items=Light_Type_List,
default='HEMI'
)
- secondarytype = EnumProperty(
+ secondarytype: EnumProperty(
attr='tl_type',
name="Fill + Back Type",
description="Choose the types of secondary Lights you would like",