[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3887] contrib/py/scripts/addons/ mesh_extra_tools: add plugin icon to menu items for visual id as plugin in interface
Brendon Murphy
meta.androcto1 at gmail.com
Thu Oct 25 05:49:31 CEST 2012
Revision: 3887
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3887
Author: meta-androcto
Date: 2012-10-25 03:49:21 +0000 (Thu, 25 Oct 2012)
Log Message:
-----------
add plugin icon to menu items for visual id as plugin in interface
rename operator in face inset fillet & clean up
Modified Paths:
--------------
contrib/py/scripts/addons/mesh_extra_tools/__init__.py
contrib/py/scripts/addons/mesh_extra_tools/face_inset_fillet.py
Modified: contrib/py/scripts/addons/mesh_extra_tools/__init__.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/__init__.py 2012-10-24 15:18:29 UTC (rev 3886)
+++ contrib/py/scripts/addons/mesh_extra_tools/__init__.py 2012-10-25 03:49:21 UTC (rev 3887)
@@ -97,31 +97,31 @@
def draw(self, context):
layout = self.layout
row = layout.split(0.80)
- row.operator('mesh.bump', text = 'Inset Bump')
+ row.operator('mesh.bump', text = 'Inset Bump', icon = 'PLUGIN')
row.operator('help.bump', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('fif.op0_id', text = 'Face Inset Fillet')
+ row.operator('faceinfillet.op0_id', text = 'Face Inset Fillet', icon = 'PLUGIN')
row.operator('help.face_inset', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.bevel_round', text = 'Bevel Round')
+ row.operator('mesh.bevel_round', text = 'Bevel Round', icon = 'PLUGIN')
row.operator('help.bevelround', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.mbevel', text = 'Bevel Selected')
+ row.operator('mesh.mbevel', text = 'Bevel Selected', icon = 'PLUGIN')
row.operator('help.edge_bevel', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('fillet.op0_id', text = 'Edge Fillet plus')
+ row.operator('fillet.op0_id', text = 'Edge Fillet plus', icon = 'PLUGIN')
row.operator('help.edge_fillet', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('normal.smooth', text = 'Normal Smooth')
+ row.operator('normal.smooth', text = 'Normal Smooth', icon = 'PLUGIN')
row.operator('help.normal_smooth', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.polyredux', text = 'Poly Redux')
+ row.operator('mesh.polyredux', text = 'Poly Redux', icon = 'PLUGIN')
row.operator('help.polyredux', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.vertex_chamfer', text = 'Vertex Chamfer')
+ row.operator('mesh.vertex_chamfer', text = 'Vertex Chamfer' , icon = 'PLUGIN')
row.operator('help.vertexchamfer', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('object.mextrude', text = 'Multi Face Extrude')
+ row.operator('object.mextrude', text = 'Multi Face Extrude', icon = 'PLUGIN')
row.operator('help.mextrude', text = '', icon = 'INFO')
row = layout.split(0.50)
row.operator('mesh.flip_normals', text = 'Normals Flip')
@@ -139,10 +139,10 @@
def draw(self, context):
layout = self.layout
row = layout.split(0.80)
- row.operator('object.mextrude', text = 'Multi Face Extrude')
+ row.operator('object.mextrude', text = 'Multi Face Extrude', icon = 'PLUGIN')
row.operator('help.mextrude', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('object.mesh2bones', text = 'Add Armature')
+ row.operator('object.mesh2bones', text = 'Add Armature', icon = 'PLUGIN')
row.operator('help.addarm', text = '', icon = 'INFO')
# Define "Extras" menu
Modified: contrib/py/scripts/addons/mesh_extra_tools/face_inset_fillet.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/face_inset_fillet.py 2012-10-24 15:18:29 UTC (rev 3886)
+++ contrib/py/scripts/addons/mesh_extra_tools/face_inset_fillet.py 2012-10-25 03:49:21 UTC (rev 3887)
@@ -18,22 +18,8 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ***** END GPL LICENCE BLOCK *****
-
+# based completely on addon by zmj100
# ------ ------
-bl_info = {
- 'name': 'face_inset_fillet',
- 'author': '',
- 'version': (0, 1, 7),
- 'blender': (2, 6, 3),
- 'api': 46962,
- 'location': 'View3D > Tool Shelf',
- 'description': '',
- 'warning': '',
- 'wiki_url': '',
- 'tracker_url': '',
- 'category': 'Mesh' }
-
-# ------ ------
import bpy
import bmesh
from bpy.props import FloatProperty, IntProperty, BoolProperty, EnumProperty
@@ -157,8 +143,8 @@
del del_
# ------ operator 0 ------
-class fif_op0(bpy.types.Operator):
- bl_idname = 'fif.op0_id'
+class faceinfillet_op0(bpy.types.Operator):
+ bl_idname = 'faceinfillet.op0_id'
bl_label = 'Face Inset Fillet'
bl_description = 'inset selected faces'
bl_options = {'REGISTER', 'UNDO'}
@@ -231,28 +217,10 @@
layout.label('Inset square, circle or outside.')
layout.label('To Help:')
layout.label('Circle: use remove doubles to tidy joins.')
- layout.label('Outset: select & use recalc normals before extruding.')
+ layout.label('Outset: select & use normals flip before extruding.')
def execute(self, context):
return {'FINISHED'}
def invoke(self, context, event):
return context.window_manager.invoke_popup(self, width = 350)
-'''
-# ------ ------
-class_list = [ fif_op0, fif_p0 ]
-
-# ------ register ------
-def register():
- for c in class_list:
- bpy.utils.register_class(c)
-
-# ------ unregister ------
-def unregister():
- for c in class_list:
- bpy.utils.unregister_class(c)
-
-# ------ ------
-if __name__ == "__main__":
- register()
-'''
\ No newline at end of file
More information about the Bf-extensions-cvs
mailing list