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 /io_anim_c3d/__init__.py
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 'io_anim_c3d/__init__.py')
-rw-r--r--io_anim_c3d/__init__.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index e14fcaec..0d4a1b95 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -127,78 +127,78 @@ class C3DImporter(bpy.types.Operator):
bl_idname = "import_anim.c3d"
bl_label = "Import C3D"
- filepath = StringProperty(
+ filepath: StringProperty(
subtype='FILE_PATH',
)
- Y_up = BoolProperty(
+ Y_up: BoolProperty(
name="Up vector is Y axis",
default=False,
description="Check when the data uses Y-up, uncheck when it uses Z-up",
)
- from_inches = BoolProperty(
+ from_inches: BoolProperty(
name="Convert from inches to meters",
default=False,
description="Scale by 2.54/100",
)
- scale = FloatProperty(
+ scale: FloatProperty(
name="Scale",
default=1.0,
description="Scale the positions by this value",
min=0.0000001, max=1000000.0,
soft_min=0.001, soft_max=100.0,
)
- auto_scale = BoolProperty(
+ auto_scale: BoolProperty(
name="Adjust scale automatically",
default=False,
description="Guess correct scale factor",
)
- auto_magnitude = BoolProperty(
+ auto_magnitude: BoolProperty(
name="Adjust scale magnitude",
default=True,
description="Automatically adjust scale magnitude",
)
- create_armature = BoolProperty(
+ create_armature: BoolProperty(
name="Create an armature",
default=True,
description="Import the markers as bones instead of empties",
)
- size = FloatProperty(
+ size: FloatProperty(
name="Empty or bone size",
default=.03,
description="The size of each empty or bone",
min=0.0001, max=1000000.0,
soft_min=0.001, soft_max=100.0,
)
- x_ray = BoolProperty(
+ x_ray: BoolProperty(
name="Use X-Ray",
default=True,
description="Show the empties or armature over other objects",
)
- frame_skip = IntProperty(
+ frame_skip: IntProperty(
name="Fps divisor",
default=1,
description="Frame supersampling factor",
min=1,
)
- use_frame_no = BoolProperty(
+ use_frame_no: BoolProperty(
name="Use frame numbers",
default=False,
description="Offset start of animation according to the source",
)
- show_names = BoolProperty(
+ show_names: BoolProperty(
name="Show Names", default=False,
description="Show the markers' name",
)
- prefix = StringProperty(
+ prefix: StringProperty(
name="Name Prefix", maxlen=32,
description="Prefix object names with this",
)
- use_existing = BoolProperty(
+ use_existing: BoolProperty(
name="Use existing empties or armature",
default=False,
description="Use previously created homonymous empties or bones",
)
- confidence = FloatProperty(
+ confidence: FloatProperty(
name="Minimum Confidence Level", default=0,
description="Only consider markers with at least "
"this confidence level",
@@ -206,7 +206,7 @@ class C3DImporter(bpy.types.Operator):
soft_min=-1., soft_max=100.0,
)
- filter_glob = StringProperty(default="*.c3d;*.csv", options={'HIDDEN'})
+ filter_glob: StringProperty(default="*.c3d;*.csv", options={'HIDDEN'})
def find_height(self, ms):
"""