[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26823] trunk/blender/release/scripts/op: Clean up of tooltips in py operators and better operator name for
Daniel Salazar
zanqdo at gmail.com
Fri Feb 12 00:13:47 CET 2010
Revision: 26823
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26823
Author: zanqdo
Date: 2010-02-12 00:13:47 +0100 (Fri, 12 Feb 2010)
Log Message:
-----------
Clean up of tooltips in py operators and better operator name for
randomize transform
Modified Paths:
--------------
trunk/blender/release/scripts/op/add_armature_human.py
trunk/blender/release/scripts/op/add_mesh_torus.py
trunk/blender/release/scripts/op/object.py
trunk/blender/release/scripts/op/object_randomize_transform.py
trunk/blender/release/scripts/op/uv.py
trunk/blender/release/scripts/op/uvcalc_follow_active.py
trunk/blender/release/scripts/op/vertexpaint_dirt.py
Modified: trunk/blender/release/scripts/op/add_armature_human.py
===================================================================
--- trunk/blender/release/scripts/op/add_armature_human.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/add_armature_human.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -583,7 +583,7 @@
class AddHuman(bpy.types.Operator):
- '''Add an advanced human metarig base.'''
+ '''Add an advanced human metarig base'''
bl_idname = "object.armature_human_advanced_add"
bl_label = "Add Humanoid (advanced metarig)"
bl_register = True
Modified: trunk/blender/release/scripts/op/add_mesh_torus.py
===================================================================
--- trunk/blender/release/scripts/op/add_mesh_torus.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/add_mesh_torus.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -75,7 +75,7 @@
class AddTorus(bpy.types.Operator):
- '''Add a torus mesh.'''
+ '''Add a torus mesh'''
bl_idname = "mesh.primitive_torus_add"
bl_label = "Add Torus"
bl_register = True
Modified: trunk/blender/release/scripts/op/object.py
===================================================================
--- trunk/blender/release/scripts/op/object.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/object.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -23,7 +23,7 @@
class SelectPattern(bpy.types.Operator):
- '''Select object matching a naming pattern.'''
+ '''Select object matching a naming pattern'''
bl_idname = "object.select_pattern"
bl_label = "Select Pattern"
bl_register = True
@@ -76,7 +76,7 @@
class SelectCamera(bpy.types.Operator):
- '''Select object matching a naming pattern.'''
+ '''Select object matching a naming pattern'''
bl_idname = "object.select_camera"
bl_label = "Select Camera"
bl_register = True
@@ -161,7 +161,7 @@
class ShapeTransfer(bpy.types.Operator):
- '''Copy another selected objects active shape to this one by applying the relative offsets.'''
+ '''Copy another selected objects active shape to this one by applying the relative offsets'''
bl_idname = "object.shape_key_transfer"
bl_label = "Transfer Shape Key"
Modified: trunk/blender/release/scripts/op/object_randomize_transform.py
===================================================================
--- trunk/blender/release/scripts/op/object_randomize_transform.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/object_randomize_transform.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -80,9 +80,9 @@
class RandomizeLocRotSize(bpy.types.Operator):
- '''Randomize objects loc/rot/scale.'''
- bl_idname = "object.randomize_locrotsize"
- bl_label = "Randomize Loc Rot Size"
+ '''Randomize objects loc/rot/scale'''
+ bl_idname = "object.randomize_transform"
+ bl_label = "Randomize Transform"
bl_register = True
bl_undo = True
@@ -141,6 +141,6 @@
def menu_func(self, context):
if context.mode == 'OBJECT':
self.layout.operator(RandomizeLocRotSize.bl_idname,
- text="Randomize Loc Rot Size")
+ text="Randomize Transform")
bpy.types.VIEW3D_MT_transform.append(menu_func)
Modified: trunk/blender/release/scripts/op/uv.py
===================================================================
--- trunk/blender/release/scripts/op/uv.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/uv.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -23,7 +23,7 @@
class ExportUVLayout(bpy.types.Operator):
- '''Export the Mesh as SVG.'''
+ '''Export the Mesh as SVG'''
bl_idname = "uv.export_layout"
bl_label = "Export UV Layout"
@@ -34,8 +34,8 @@
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
export_all = BoolProperty(name="All UV's", description="Export all UVs in this mesh (not just the visible ones)", default=False)
mode = EnumProperty(items=(
- ('SVG', "Scalable Vector Graphic (.svg)", "Export the UV layout to a vector SVG file."),
- ('EPS', "Encapsulate PostScript (.eps)", "Export the UV layout to a vector EPS file.")),
+ ('SVG', "Scalable Vector Graphic (.svg)", "Export the UV layout to a vector SVG file"),
+ ('EPS', "Encapsulate PostScript (.eps)", "Export the UV layout to a vector EPS file")),
name="Format",
description="File format to export the UV layout to",
default='SVG')
Modified: trunk/blender/release/scripts/op/uvcalc_follow_active.py
===================================================================
--- trunk/blender/release/scripts/op/uvcalc_follow_active.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/uvcalc_follow_active.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -47,7 +47,7 @@
'''
Takes 2 faces,
Projects its extends its UV coords onto the face next to it.
- Both faces must share an edge.
+ Both faces must share an edge
'''
def face_edge_vs(vi):
@@ -239,14 +239,14 @@
class FollowActiveQuads(bpy.types.Operator):
- '''Follow UVs from active quads along continuous face loops.'''
+ '''Follow UVs from active quads along continuous face loops'''
bl_idname = "uv.follow_active_quads"
bl_label = "Follow Active Quads"
bl_register = True
bl_undo = True
- mode = bpy.props.EnumProperty(items=(("EVEN", "Even", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop.")),
+ mode = bpy.props.EnumProperty(items=(("EVEN", "Even", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop")),
name="Edge Length Mode",
description="Method to space UV edge loops",
default="LENGTH")
Modified: trunk/blender/release/scripts/op/vertexpaint_dirt.py
===================================================================
--- trunk/blender/release/scripts/op/vertexpaint_dirt.py 2010-02-11 22:28:51 UTC (rev 26822)
+++ trunk/blender/release/scripts/op/vertexpaint_dirt.py 2010-02-11 23:13:47 UTC (rev 26823)
@@ -161,7 +161,7 @@
obj = context.object
if not obj or obj.type != 'MESH':
- print('Error, no active mesh object, aborting.')
+ print('Error, no active mesh object, aborting')
return('CANCELLED',)
mesh = obj.data
More information about the Bf-blender-cvs
mailing list