[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2541] trunk/py/scripts/addons: Minor UI fixes and tweaks.

Bastien Montagne montagne29 at wanadoo.fr
Fri Oct 28 13:38:15 CEST 2011


Revision: 2541
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2541
Author:   mont29
Date:     2011-10-28 11:38:15 +0000 (Fri, 28 Oct 2011)
Log Message:
-----------
Minor UI fixes and tweaks.
Beware: in mocap/__init__.py there was a very long bl_label (> 100 chars), which was troncated in UI (at least, _update_msg.py produced a troncated msgid for it). That should be avoided, imho!

Modified Paths:
--------------
    trunk/py/scripts/addons/io_import_scene_dxf.py
    trunk/py/scripts/addons/mocap/__init__.py
    trunk/py/scripts/addons/system_demo_mode/__init__.py

Modified: trunk/py/scripts/addons/io_import_scene_dxf.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_dxf.py	2011-10-28 07:01:20 UTC (rev 2540)
+++ trunk/py/scripts/addons/io_import_scene_dxf.py	2011-10-28 11:38:15 UTC (rev 2541)
@@ -2473,7 +2473,7 @@
             )
     circleResolution = IntProperty(
             name="Circle resolution",
-            description="Circle/Arc are aproximated will this factor",
+            description="Circle/Arc are aproximated with this factor",
             default=theCircleRes,
             min=4,
             soft_min=4,

Modified: trunk/py/scripts/addons/mocap/__init__.py
===================================================================
--- trunk/py/scripts/addons/mocap/__init__.py	2011-10-28 07:01:20 UTC (rev 2540)
+++ trunk/py/scripts/addons/mocap/__init__.py	2011-10-28 11:38:15 UTC (rev 2541)
@@ -433,7 +433,7 @@
     # has an action for retargeting
     '''Retarget animation from selected armature to active armature '''
     bl_idname = "mocap.retarget"
-    bl_label = "Retargets active action from Performer to Enduser"
+    bl_label = "Retarget active action from Performer to Enduser"
     bl_options = {'REGISTER', 'UNDO'}
 
     def execute(self, context):
@@ -471,7 +471,7 @@
     #Operator for saving mapping to enduser armature
     '''Save mapping to active armature (for future retargets) '''
     bl_idname = "mocap.savemapping"
-    bl_label = "Saves user generated mapping from Performer to Enduser"
+    bl_label = "Save user generated mapping from Performer to Enduser"
 
     def execute(self, context):
         enduser_obj = bpy.context.active_object
@@ -494,7 +494,7 @@
     '''Load saved mapping from active armature'''
     #Operator for loading mapping to enduser armature
     bl_idname = "mocap.loadmapping"
-    bl_label = "Loads user generated mapping from Performer to Enduser"
+    bl_label = "Load user generated mapping from Performer to Enduser"
 
     def execute(self, context):
         enduser_obj = bpy.context.active_object
@@ -549,7 +549,7 @@
     #Operator to convert samples to beziers on the selected object
     '''Convert active armature's sampled keyframed to beziers'''
     bl_idname = "mocap.samples"
-    bl_label = "Converts samples / simplifies keyframes to beziers"
+    bl_label = "Convert samples / simplifies keyframes to beziers"
 
     def execute(self, context):
         mocap_tools.fcurves_simplify(context, context.active_object)
@@ -564,7 +564,7 @@
     #Operator to trim fcurves which contain a few loops to a single one on the selected object
     '''Trim active armature's animation to a single cycle, given a cyclic animation (such as a walk cycle)'''
     bl_idname = "mocap.looper"
-    bl_label = "loops animation / sampled mocap data"
+    bl_label = "loop animation / sampled mocap data"
 
     def execute(self, context):
         mocap_tools.autoloop_anim()
@@ -577,9 +577,9 @@
 
 class OBJECT_OT_DenoiseButton(bpy.types.Operator):
     #Operator to denoise impluse noise on the active object's fcurves
-    '''Denoise active armature's animation. Good for dealing with 'bad' frames inherent in mocap animation'''
+    '''Denoise active armature's animation (good for dealing with 'bad' frames inherent in mocap animation)'''
     bl_idname = "mocap.denoise"
-    bl_label = "Denoises sampled mocap data "
+    bl_label = "Denoise sampled mocap data"
 
     def execute(self, context):
         mocap_tools.denoise_median()
@@ -594,7 +594,7 @@
     #Operator to analyze performer armature and apply rotation constraints on the enduser armature
     '''Create limit constraints on the active armature from the selected armature's animation's range of motion'''
     bl_idname = "mocap.limitdof"
-    bl_label = "Analyzes animations Max/Min DOF and adds hard/soft constraints"
+    bl_label = "Analyze animations Max/Min DOF and add hard/soft constraints"
 
     def execute(self, context):
         performer_obj = [obj for obj in context.selected_objects if obj != context.active_object][0]
@@ -614,9 +614,9 @@
 
 class OBJECT_OT_RemoveLimitDOFButton(bpy.types.Operator):
     #Removes constraints created by above operator
-    '''Removes previously created limit constraints on the active armature'''
+    '''Remove previously created limit constraints on the active armature'''
     bl_idname = "mocap.removelimitdof"
-    bl_label = "Removes previously created limit constraints on the active armature"
+    bl_label = "Remove previously created limit constraints on the active armature"
 
     def execute(self, context):
         mocap_tools.limit_dof_toggle_off(context, context.active_object)
@@ -632,9 +632,9 @@
 
 class OBJECT_OT_RotateFixArmature(bpy.types.Operator):
     #Operator to fix common imported Mocap data issue of wrong axis system on active object
-    '''Realign the active armature's axis system to match Blender (Commonly needed after bvh import)'''
+    '''Realign the active armature's axis system to match Blender (commonly needed after bvh import)'''
     bl_idname = "mocap.rotate_fix"
-    bl_label = "Rotates selected armature 90 degrees (fix for bvh import)"
+    bl_label = "Rotate selected armature 90 degrees (fix for bvh import)"
 
     def execute(self, context):
         mocap_tools.rotate_fix_armature(context.active_object.data)
@@ -650,7 +650,7 @@
     #Operator to scale down the selected armature to match the active one
     '''Rescale selected armature to match the active animation, for convienence'''
     bl_idname = "mocap.scale_fix"
-    bl_label = "Scales performer armature to match target armature"
+    bl_label = "Scale performer armature to match target armature"
 
     def execute(self, context):
         enduser_obj = bpy.context.active_object
@@ -698,7 +698,7 @@
     #Operator to remove a post-retarget fix
     '''Remove this post-retarget fix'''
     bl_idname = "mocap.removeconstraint"
-    bl_label = "Removes fixes from target armature"
+    bl_label = "Remove fixes from target armature"
     constraint = IntProperty()
 
     def execute(self, context):
@@ -754,9 +754,9 @@
 class OBJECT_OT_UpdateMocapConstraints(bpy.types.Operator):
     #Operator to update all post-retarget fixes, similar to update dependencies on drivers
     #Needed because python properties lack certain callbacks and some fixes take a while to recalculate.
-    '''Updates all post-retarget fixes - needed after changes to armature object or pose'''
+    '''Update all post-retarget fixes (neccesary to take under consideration changes to armature object or pose)'''
     bl_idname = "mocap.updateconstraints"
-    bl_label = "Updates all fixes to target armature - neccesary to take under consideration changes to armature object or pose"
+    bl_label = "Update all post-retarget fixes"
 
     def execute(self, context):
         mocap_constraints.updateConstraints(context.active_object, context)
@@ -770,9 +770,9 @@
 
 class OBJECT_OT_GuessHierachyMapping(bpy.types.Operator):
     #Operator which calls heurisitic function to guess mapping between 2 armatures
-    '''Attemps to auto figure out hierarchy mapping'''
+    '''Attemp to auto figure out hierarchy mapping'''
     bl_idname = "mocap.guessmapping"
-    bl_label = "Attemps to auto figure out hierarchy mapping"
+    bl_label = "Attemp to auto figure out hierarchy mapping"
 
     def execute(self, context):
         enduser_obj = bpy.context.active_object
@@ -793,9 +793,9 @@
 
 class OBJECT_OT_PathEditing(bpy.types.Operator):
     #Operator which calls path editing function, making active object follow the selected curve.
-    '''Sets active object (stride object) to follow the selected curve'''
+    '''Set active object (stride object) to follow the selected curve'''
     bl_idname = "mocap.pathediting"
-    bl_label = "Sets active object (stride object) to follow the selected curve"
+    bl_label = "Set active object (stride object) to follow the selected curve"
 
     def execute(self, context):
         path = [obj for obj in context.selected_objects if obj != context.active_object][0]
@@ -813,9 +813,9 @@
 
 class OBJECT_OT_AnimationStitchingButton(bpy.types.Operator):
     #Operator which calls stitching function, combining 2 animations onto the NLA.
-    '''Stitches two defined animations into a single one via alignment of NLA Tracks'''
+    '''Stitche two defined animations into a single one via alignment of NLA Tracks'''
     bl_idname = "mocap.animstitch"
-    bl_label = "Stitches two defined animations into a single one via alignment of NLA Tracks"
+    bl_label = "Stitch two defined animations into a single one via alignment of NLA Tracks"
 
     def execute(self, context):
         mocap_tools.anim_stitch(context, context.active_object)
@@ -834,9 +834,9 @@
 
 class OBJECT_OT_GuessAnimationStitchingButton(bpy.types.Operator):
     #Operator which calls stitching function heuristic, setting good values for above operator.
-    '''Guesses the stitch frame and second offset for animation stitch'''
+    '''Guess the stitch frame and second offset for animation stitch'''
     bl_idname = "mocap.animstitchguess"
-    bl_label = "Guesses the stitch frame and second offset for animation stitch"
+    bl_label = "Guess the stitch frame and second offset for animation stitch"
 
     def execute(self, context):
         mocap_tools.guess_anim_stitch(context, context.active_object)
@@ -863,7 +863,7 @@
     bpy.types.Bone.reverseMap = CollectionProperty(type=MocapMapping)
     #Boolean property for storing foot bone toggle
     bpy.types.Bone.foot = BoolProperty(name="Foot",
-        description="Marks this bone as a 'foot', which determines retargeted animation's translation",
+        description="Mark this bone as a 'foot', which determines retargeted animation's translation",
         default=False)
     #Boolean property for storing if this bone is twisted along the y axis,
     # which can happen due to various sources of performers
@@ -872,7 +872,7 @@
         default=False)
     #Boolean property for toggling ik retargeting for this bone
     bpy.types.PoseBone.IKRetarget = BoolProperty(name="IK",
-        description="Toggles IK Retargeting method for given bone",
+        description="Toggle IK Retargeting method for given bone",
         update=toggleIKBone, default=False)
     bpy.utils.register_class(AnimationStitchSettings)

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list