diff options
author | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
commit | aeabdc02a83a976b2f594cd66873c6d2b537e669 (patch) | |
tree | 3ac5922be25219ab666aae4b8d04002bce2e70a6 /mesh_extra_tools/mesh_mextrude_plus.py | |
parent | ba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff) |
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to
use the new annotation format (colon instead of equals) for
assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'mesh_extra_tools/mesh_mextrude_plus.py')
-rw-r--r-- | mesh_extra_tools/mesh_mextrude_plus.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/mesh_extra_tools/mesh_mextrude_plus.py b/mesh_extra_tools/mesh_mextrude_plus.py index de5f561b..5fa2aa2b 100644 --- a/mesh_extra_tools/mesh_mextrude_plus.py +++ b/mesh_extra_tools/mesh_mextrude_plus.py @@ -84,42 +84,42 @@ class MExtrude(Operator): "Scaling, Variation, Randomization") bl_options = {"REGISTER", "UNDO", "PRESET"} - off = FloatProperty( + off: FloatProperty( name="Offset", soft_min=0.001, soft_max=10, min=-100, max=100, default=1.0, description="Translation" ) - offx = FloatProperty( + offx: FloatProperty( name="Loc X", soft_min=-10.0, soft_max=10.0, min=-100.0, max=100.0, default=0.0, description="Global Translation X" ) - offy = FloatProperty( + offy: FloatProperty( name="Loc Y", soft_min=-10.0, soft_max=10.0, min=-100.0, max=100.0, default=0.0, description="Global Translation Y" ) - offz = FloatProperty( + offz: FloatProperty( name="Loc Z", soft_min=-10.0, soft_max=10.0, min=-100.0, max=100.0, default=0.0, description="Global Translation Z" ) - rotx = FloatProperty( + rotx: FloatProperty( name="Rot X", min=-85, max=85, soft_min=-30, soft_max=30, default=0, description="X Rotation" ) - roty = FloatProperty( + roty: FloatProperty( name="Rot Y", min=-85, max=85, soft_min=-30, @@ -127,96 +127,96 @@ class MExtrude(Operator): default=0, description="Y Rotation" ) - rotz = FloatProperty( + rotz: FloatProperty( name="Rot Z", min=-85, max=85, soft_min=-30, soft_max=30, default=-0, description="Z Rotation" ) - nrotx = FloatProperty( + nrotx: FloatProperty( name="N Rot X", min=-85, max=85, soft_min=-30, soft_max=30, default=0, description="Normal X Rotation" ) - nroty = FloatProperty( + nroty: FloatProperty( name="N Rot Y", min=-85, max=85, soft_min=-30, soft_max=30, default=0, description="Normal Y Rotation" ) - nrotz = FloatProperty( + nrotz: FloatProperty( name="N Rot Z", min=-85, max=85, soft_min=-30, soft_max=30, default=-0, description="Normal Z Rotation" ) - sca = FloatProperty( + sca: FloatProperty( name="Scale", min=0.01, max=10, soft_min=0.5, soft_max=1.5, default=1.0, description="Scaling of the selected faces after extrusion" ) - var1 = FloatProperty( + var1: FloatProperty( name="Offset Var", min=-10, max=10, soft_min=-1, soft_max=1, default=0, description="Offset variation" ) - var2 = FloatProperty( + var2: FloatProperty( name="Rotation Var", min=-10, max=10, soft_min=-1, soft_max=1, default=0, description="Rotation variation" ) - var3 = FloatProperty( + var3: FloatProperty( name="Scale Noise", min=-10, max=10, soft_min=-1, soft_max=1, default=0, description="Scaling noise" ) - var4 = IntProperty( + var4: IntProperty( name="Probability", min=0, max=100, default=100, description="Probability, chance of extruding a face" ) - num = IntProperty( + num: IntProperty( name="Repeat", min=1, max=500, soft_max=100, default=5, description="Repetitions" ) - ran = IntProperty( + ran: IntProperty( name="Seed", min=-9999, max=9999, default=0, description="Seed to feed random values" ) - opt1 = BoolProperty( + opt1: BoolProperty( name="Polygon coordinates", default=True, description="Polygon coordinates, Object coordinates" ) - opt2 = BoolProperty( + opt2: BoolProperty( name="Proportional offset", default=False, description="Scale * Offset" ) - opt3 = BoolProperty( + opt3: BoolProperty( name="Per step rotation noise", default=False, description="Per step rotation noise, Initial rotation noise" ) - opt4 = BoolProperty( + opt4: BoolProperty( name="Per step scale noise", default=False, description="Per step scale noise, Initial scale noise" |