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:
Diffstat (limited to 'mocap/__init__.py')
-rw-r--r--mocap/__init__.py62
1 files changed, 31 insertions, 31 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py
index d2a1c57b..ca5fe32f 100644
--- a/mocap/__init__.py
+++ b/mocap/__init__.py
@@ -73,99 +73,99 @@ def hasIKConstraint(pose_bone):
class MocapConstraint(bpy.types.PropertyGroup):
- name = StringProperty(name="Name",
+ name: StringProperty(name="Name",
default="Mocap Fix",
description="Name of Mocap Fix",
update=mocap_constraints.setConstraint)
- constrained_bone = StringProperty(name="Bone",
+ constrained_bone: StringProperty(name="Bone",
default="",
description="Constrained Bone",
update=mocap_constraints.updateConstraintBoneType)
- constrained_boneB = StringProperty(name="Bone (2)",
+ constrained_boneB: StringProperty(name="Bone (2)",
default="",
description="Other Constrained Bone (optional, depends on type)",
update=mocap_constraints.setConstraint)
- s_frame = IntProperty(name="S",
+ s_frame: IntProperty(name="S",
default=0,
description="Start frame of Fix",
update=mocap_constraints.setConstraint)
- e_frame = IntProperty(name="E",
+ e_frame: IntProperty(name="E",
default=100,
description="End frame of Fix",
update=mocap_constraints.setConstraint)
- smooth_in = IntProperty(name="In",
+ smooth_in: IntProperty(name="In",
default=10,
description="Number of frames to smooth in",
update=mocap_constraints.setConstraint,
min=0)
- smooth_out = IntProperty(name="Out",
+ smooth_out: IntProperty(name="Out",
default=10,
description="Number of frames to smooth out",
update=mocap_constraints.setConstraint,
min=0)
- targetMesh = StringProperty(name="Mesh",
+ targetMesh: StringProperty(name="Mesh",
default="",
description="Target of Fix - Mesh (optional, depends on type)",
update=mocap_constraints.setConstraint)
- active = BoolProperty(name="Active",
+ active: BoolProperty(name="Active",
default=True,
description="Fix is active",
update=mocap_constraints.setConstraint)
- show_expanded = BoolProperty(name="Show Expanded",
+ show_expanded: BoolProperty(name="Show Expanded",
default=True,
description="Fix is fully shown")
- targetPoint = FloatVectorProperty(name="Point", size=3,
+ targetPoint: FloatVectorProperty(name="Point", size=3,
subtype="XYZ", default=(0.0, 0.0, 0.0),
description="Target of Fix - Point",
update=mocap_constraints.setConstraint)
- targetDist = FloatProperty(name="Offset",
+ targetDist: FloatProperty(name="Offset",
default=0.0,
description="Distance and Floor Fixes - Desired offset",
update=mocap_constraints.setConstraint)
- targetSpace = EnumProperty(
+ targetSpace: EnumProperty(
items=[("WORLD", "World Space", "Evaluate target in global space"),
("LOCAL", "Object space", "Evaluate target in object space"),
("constrained_boneB", "Other Bone Space", "Evaluate target in specified other bone space")],
name="Space",
description="In which space should Point type target be evaluated",
update=mocap_constraints.setConstraint)
- type = EnumProperty(name="Type of constraint",
+ type: EnumProperty(name="Type of constraint",
items=[("point", "Maintain Position", "Bone is at a specific point"),
("freeze", "Maintain Position at frame", "Bone does not move from location specified in target frame"),
("floor", "Stay above", "Bone does not cross specified mesh object eg floor"),
("distance", "Maintain distance", "Target bones maintained specified distance")],
description="Type of Fix",
update=mocap_constraints.updateConstraintBoneType)
- real_constraint = StringProperty()
- real_constraint_bone = StringProperty()
+ real_constraint: StringProperty()
+ real_constraint_bone: StringProperty()
# Animation Stitch Settings, used for animation stitching of 2 retargeted animations.
class AnimationStitchSettings(bpy.types.PropertyGroup):
- first_action = StringProperty(name="Action 1",
+ first_action: StringProperty(name="Action 1",
description="First action in stitch")
- second_action = StringProperty(name="Action 2",
+ second_action: StringProperty(name="Action 2",
description="Second action in stitch")
- blend_frame = IntProperty(name="Stitch frame",
+ blend_frame: IntProperty(name="Stitch frame",
description="Frame to locate stitch on")
- blend_amount = IntProperty(name="Blend amount",
+ blend_amount: IntProperty(name="Blend amount",
description="Size of blending transition, on both sides of the stitch",
default=10)
- second_offset = IntProperty(name="Second offset",
+ second_offset: IntProperty(name="Second offset",
description="Frame offset for 2nd animation, where it should start",
default=10)
- stick_bone = StringProperty(name="Stick Bone",
+ stick_bone: StringProperty(name="Stick Bone",
description="Bone to freeze during transition",
default="")
# MocapNLA Tracks. Stores which tracks/actions are associated with each retargeted animation.
class MocapNLATracks(bpy.types.PropertyGroup):
- name = StringProperty()
- base_track = StringProperty()
- auto_fix_track = StringProperty()
- manual_fix_track = StringProperty()
- stride_action = StringProperty()
+ name: StringProperty()
+ base_track: StringProperty()
+ auto_fix_track: StringProperty()
+ manual_fix_track: StringProperty()
+ stride_action: StringProperty()
#Update function for Advanced Retarget boolean variable.
@@ -231,7 +231,7 @@ def toggleIKBone(self, context):
#MocapMap class for storing mapping on enduser performer,
# where a bone may be linked to more than one on the performer
class MocapMapping(bpy.types.PropertyGroup):
- name = StringProperty()
+ name: StringProperty()
# Disabling for now [#28933] - campbell
'''
@@ -543,7 +543,7 @@ class OBJECT_OT_SelectMapBoneButton(bpy.types.Operator):
"""Select a bone for faster mapping"""
bl_idname = "mocap.selectmap"
bl_label = "Select Mapping Bone"
- perf_bone = StringProperty()
+ perf_bone: StringProperty()
def execute(self, context):
enduser_obj = bpy.context.active_object
@@ -706,7 +706,7 @@ class MOCAP_OT_AddMocapFix(bpy.types.Operator):
"""artifacts following the retarget"""
bl_idname = "mocap.addmocapfix"
bl_label = "Add Mocap Fix"
- type = EnumProperty(name="Type of Fix",
+ type: EnumProperty(name="Type of Fix",
items=[("point", "Maintain Position", "Bone is at a specific point"),
("freeze", "Maintain Position at frame", "Bone does not move from location specified in target frame"),
("floor", "Stay above", "Bone does not cross specified mesh object eg floor"),
@@ -731,7 +731,7 @@ class OBJECT_OT_RemoveMocapConstraint(bpy.types.Operator):
"""Remove this post-retarget fix"""
bl_idname = "mocap.removeconstraint"
bl_label = "Remove Mocap Fix"
- constraint = IntProperty()
+ constraint: IntProperty()
def execute(self, context):
enduser_obj = bpy.context.active_object