[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3883] contrib/py/scripts/addons/ mesh_extra_tools: tidy up & add info icon for the scripts help/info panels

Brendon Murphy meta.androcto1 at gmail.com
Wed Oct 24 09:13:43 CEST 2012


Revision: 3883
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3883
Author:   meta-androcto
Date:     2012-10-24 07:13:42 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
tidy up & add info icon for the scripts help/info panels

Modified Paths:
--------------
    contrib/py/scripts/addons/mesh_extra_tools/__init__.py
    contrib/py/scripts/addons/mesh_extra_tools/mesh_mextrude_plus.py

Modified: contrib/py/scripts/addons/mesh_extra_tools/__init__.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/__init__.py	2012-10-23 19:29:48 UTC (rev 3882)
+++ contrib/py/scripts/addons/mesh_extra_tools/__init__.py	2012-10-24 07:13:42 UTC (rev 3883)
@@ -98,31 +98,31 @@
         layout = self.layout
         row = layout.split(0.80)
         row.operator('mesh.bump', text = 'Inset Bump')
-        row.operator('help.bump', text = '?')
+        row.operator('help.bump', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('fif.op0_id', text = 'Face Inset Fillet')
-        row.operator('help.face_inset', text = '?')
+        row.operator('help.face_inset', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('mesh.bevel_round', text = 'Bevel Round')
-        row.operator('help.bevelround', text = '?')
+        row.operator('help.bevelround', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('mesh.mbevel', text = 'Bevel Selected')
-        row.operator('help.edge_bevel', text = '?')
+        row.operator('help.edge_bevel', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('fillet.op0_id', text = 'Edge Fillet plus')
-        row.operator('help.edge_fillet', text = '?')
+        row.operator('help.edge_fillet', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('normal.smooth', text = 'Normal Smooth')
-        row.operator('help.normal_smooth', text = '?')
+        row.operator('help.normal_smooth', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('mesh.polyredux', text = 'Poly Redux')
-        row.operator('help.polyredux', text = '?')
+        row.operator('help.polyredux', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('mesh.vertex_chamfer', text = 'Vertex Chamfer')
-        row.operator('help.vertexchamfer', text = '?')
+        row.operator('help.vertexchamfer', text = '', icon = 'INFO')
         row = layout.split(0.80)
         row.operator('object.mextrude', text = 'Multi Face Extrude')
-        row.operator('help.mextrude', text = '?')
+        row.operator('help.mextrude', text = '', icon = 'INFO')
         row = layout.split(0.50)
         row.operator('mesh.flip_normals', text = 'Normals Flip')
         row.operator('mesh.remove_doubles', text = 'Remove Doubles')
@@ -140,11 +140,11 @@
         layout = self.layout
         row = layout.split(0.80)
         row.operator('object.mextrude', text = 'Multi Face Extrude')
-        row.operator('help.mextrude', text = '?')
+        row.operator('help.mextrude', text = '', icon = 'INFO')
         row = layout.split(0.80)
-        row.operator('mesh.bump', text = 'Inset Bump')
-        row.operator('help.bump', text = '?')
-        layout.operator('object.mesh2bones')
+        row.operator('object.mesh2bones', text = 'Add Armature')
+        row.operator('help.addarm', text = '', icon = 'INFO')
+
 # Define "Extras" menu
 def menu_func(self, context):
     self.layout.menu('VIEW3D_MT_edit_mesh_extras', icon='PLUGIN')

Modified: contrib/py/scripts/addons/mesh_extra_tools/mesh_mextrude_plus.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/mesh_mextrude_plus.py	2012-10-23 19:29:48 UTC (rev 3882)
+++ contrib/py/scripts/addons/mesh_extra_tools/mesh_mextrude_plus.py	2012-10-24 07:13:42 UTC (rev 3883)
@@ -181,14 +181,27 @@
 		layout.label('To use:')
 		layout.label('Make a selection or selection of Faces.')
 		layout.label('Extrude, rotate extrusions & more.')
-		layout.label('For rigging capabilities, see Multi Extrude panel.')
-	
+		layout.label('For rigging capabilities, see Multi Extrude Plus panel.')
+	def invoke(self, context, event):
+		return context.window_manager.invoke_popup(self, width = 300)
+
+class addarm_help(bpy.types.Operator):
+	bl_idname = 'help.addarm'
+	bl_label = ''
+
+	def draw(self, context):
+		layout = self.layout
+		layout.label('To use:')
+		layout.label('With Multi extrude to rig extrusions.')
+		layout.label('Adds Empty to control rig.')
+		layout.label('Based on selected face/s & object center.')
+
 	def execute(self, context):
 		return {'FINISHED'}
 
 	def invoke(self, context, event):
 		return context.window_manager.invoke_popup(self, width = 300)
-		
+
 class BB(bpy.types.Operator):
     bl_idname = 'object.mesh2bones'
     bl_label = 'Create Armature'



More information about the Bf-extensions-cvs mailing list