[Bf-extensions-cvs] [8e3bfa5] master: initial commit mesh edit tools: T50680
meta-androcto
noreply at git.blender.org
Mon Mar 20 00:33:59 CET 2017
Commit: 8e3bfa5506ea110fe6793401b53da17c61061167
Author: meta-androcto
Date: Mon Mar 20 10:33:38 2017 +1100
Branches: master
https://developer.blender.org/rBA8e3bfa5506ea110fe6793401b53da17c61061167
initial commit mesh edit tools: T50680
===================================================================
A mesh_extra_tools/__init__.py
A mesh_extra_tools/face_inset_fillet.py
A mesh_extra_tools/mesh_cut_faces.py
A mesh_extra_tools/mesh_edge_roundifier.py
A mesh_extra_tools/mesh_edges_length.py
A mesh_extra_tools/mesh_edgetools.py
A mesh_extra_tools/mesh_extrude_and_reshape.py
A mesh_extra_tools/mesh_fastloop.py
A mesh_extra_tools/mesh_filletplus.py
A mesh_extra_tools/mesh_help.py
A mesh_extra_tools/mesh_mextrude_plus.py
A mesh_extra_tools/mesh_offset_edges.py
A mesh_extra_tools/mesh_pen_tool.py
A mesh_extra_tools/mesh_select_tools/__init__.py
A mesh_extra_tools/mesh_select_tools/mesh_index_select.py
A mesh_extra_tools/mesh_select_tools/mesh_info_select.py
A mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py
A mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
A mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py
A mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py
A mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py
A mesh_extra_tools/mesh_select_tools/mesh_selection_topokit.py
A mesh_extra_tools/mesh_to_wall.py
A mesh_extra_tools/mesh_vertex_chamfer.py
A mesh_extra_tools/pkhg_faces.py
A mesh_extra_tools/random_vertices.py
A mesh_extra_tools/split_solidify.py
A mesh_extra_tools/vfe_specials.py
===================================================================
diff --git a/mesh_extra_tools/__init__.py b/mesh_extra_tools/__init__.py
new file mode 100644
index 0000000..90f5c67
--- /dev/null
+++ b/mesh_extra_tools/__init__.py
@@ -0,0 +1,762 @@
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# Contributed to by:
+# meta-androcto, Hidesato Ikeya, zmj100, luxuy_BlenderCN, TrumanBlending, PKHG, #
+# Oscurart, Greg, Stanislav Blinov, komi3D, BlenderLab, Paul Marshall (brikbot), #
+# metalliandy, macouno, CoDEmanX, dustractor, Liero, lijenstina, Germano Cavalcante #
+
+bl_info = {
+ "name": "Edit Tools 2",
+ "author": "meta-androcto",
+ "version": (0, 3, 1),
+ "blender": (2, 77, 0),
+ "location": "View3D > Toolshelf > Tools and Specials (W-key)",
+ "description": "Extra mesh edit tools - modifying meshes and selection",
+ "warning": "",
+ "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Modeling/Extra_Tools",
+ "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
+ "category": "Mesh"}
+
+
+# Import From Files
+if "bpy" in locals():
+ import importlib
+ importlib.reload(face_inset_fillet)
+ importlib.reload(mesh_filletplus)
+ importlib.reload(mesh_vertex_chamfer)
+ importlib.reload(mesh_mextrude_plus)
+ importlib.reload(mesh_offset_edges)
+ importlib.reload(pkhg_faces)
+ importlib.reload(mesh_edge_roundifier)
+ importlib.reload(mesh_cut_faces)
+ importlib.reload(split_solidify)
+ importlib.reload(mesh_to_wall)
+ importlib.reload(mesh_edges_length)
+ importlib.reload(random_vertices)
+ importlib.reload(mesh_fastloop)
+ importlib.reload(mesh_edgetools)
+ importlib.reload(mesh_pen_tool)
+ importlib.reload(vfe_specials)
+ importlib.reload(mesh_help)
+ importlib.reload(mesh_select_by_direction)
+ importlib.reload(mesh_select_by_edge_length)
+ importlib.reload(mesh_select_by_pi)
+ importlib.reload(mesh_select_by_type)
+ importlib.reload(mesh_select_connected_faces)
+ importlib.reload(mesh_index_select)
+ importlib.reload(mesh_selection_topokit)
+ importlib.reload(mesh_info_select)
+ importlib.reload(mesh_extrude_and_reshape)
+
+else:
+ from . import face_inset_fillet
+ from . import mesh_filletplus
+ from . import mesh_vertex_chamfer
+ from . import mesh_mextrude_plus
+ from . import mesh_offset_edges
+ from . import pkhg_faces
+ from . import mesh_edge_roundifier
+ from . import mesh_cut_faces
+ from . import split_solidify
+ from . import mesh_to_wall
+ from . import mesh_edges_length
+ from . import random_vertices
+ from . import mesh_fastloop
+ from . import mesh_edgetools
+ from . import mesh_pen_tool
+ from . import vfe_specials
+ from . import mesh_help
+ from . import mesh_extrude_and_reshape
+
+ from .mesh_select_tools import mesh_select_by_direction
+ from .mesh_select_tools import mesh_select_by_edge_length
+ from .mesh_select_tools import mesh_select_by_pi
+ from .mesh_select_tools import mesh_select_by_type
+ from .mesh_select_tools import mesh_select_connected_faces
+ from .mesh_select_tools import mesh_index_select
+ from .mesh_select_tools import mesh_selection_topokit
+ from .mesh_select_tools import mesh_info_select
+
+import bpy
+from bpy.types import (
+ Menu,
+ Panel,
+ PropertyGroup,
+ AddonPreferences,
+ )
+from bpy.props import (
+ BoolProperty,
+ BoolVectorProperty,
+ IntVectorProperty,
+ PointerProperty,
+ )
+
+
+# ------ MENUS ------ #
+
+# Define the "Extras" menu
+class VIEW3D_MT_edit_mesh_extras(Menu):
+ bl_idname = "VIEW3D_MT_edit_mesh_extras"
+ bl_label = "Edit Tools"
+
+ def draw(self, context):
+ layout = self.layout
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ mode = context.tool_settings.mesh_select_mode
+
+ if mode[0]:
+ split = layout.split()
+ col = split.column()
+
+ col.label(text="Vertex", icon="VERTEXSEL")
+ col.separator()
+
+ col.operator("mesh.vertex_chamfer", text="Vertex Chamfer")
+ col.operator("mesh.random_vertices", text="Random Vertices")
+
+ col = split.column()
+ col.label(text="Utilities", icon="SCRIPTWIN")
+ col.separator()
+
+ col.operator("object_ot.fastloop", text="Fast loop")
+ col.operator("mesh.flip_normals", text="Normals Flip")
+ col.operator("mesh.remove_doubles", text="Remove Doubles")
+ col.operator("mesh.subdivide", text="Subdivide")
+ col.operator("mesh.dissolve_limited", text="Dissolve Limited")
+
+ elif mode[1]:
+ split = layout.split()
+ col = split.column()
+ col.label(text="Edge", icon="EDGESEL")
+ col.separator()
+
+ col.operator("mesh.fillet_plus", text="Edge Fillet Plus")
+ col.operator("mesh.offset_edges", text="Offset Edges")
+ col.operator("mesh.edge_roundifier", text="Edge Roundify")
+ col.operator("object.mesh_edge_length_set", text="Set Edge Length")
+ col.operator("bpt.mesh_to_wall", text="Edge(s) to Wall")
+
+ col = split.column()
+ col.label(text="Utilities", icon="SCRIPTWIN")
+ col.separator()
+
+ col.operator("object_ot.fastloop", text="Fast loop")
+ col.operator("mesh.flip_normals", text="Normals Flip")
+ col.operator("mesh.remove_doubles", text="Remove Doubles")
+
+ col.operator("mesh.subdivide", text="Subdivide")
+ col.operator("mesh.dissolve_limited", text="Dissolve Limited")
+
+ elif mode[2]:
+ split = layout.split()
+ col = split.column()
+ col.label(text="Face", icon="FACESEL")
+ col.separator()
+
+ col.operator("object.mextrude", text="Multi Extrude")
+ col.operator("mesh.face_inset_fillet", text="Face Inset Fillet")
+ col.operator("mesh.extrude_reshape", text="Push/Pull")
+ col.operator("mesh.add_faces_to_object", text="PKHG Faces")
+ col.operator("mesh.ext_cut_faces", text="Cut Faces")
+ col.operator("mesh.split_solidify", text="Split Solidify")
+
+ col = split.column()
+ col.label(text="Utilities", icon="SCRIPTWIN")
+ col.separator()
+
+ col.operator("object_ot.fastloop", text="Fast loop")
+ col.operator("mesh.flip_normals", text="Normals Flip")
+ col.operator("mesh.remove_doubles", text="Remove Doubles")
+ col.operator("mesh.subdivide", text="Subdivide")
+ col.operator("mesh.dissolve_limited", text="Dissolve Limited")
+
+
+class EditToolsPanel(Panel):
+ bl_label = "Mesh Edit Tools"
+ bl_space_type = "VIEW_3D"
+ bl_region_type = "TOOLS"
+ bl_context = "mesh_edit"
+ bl_category = "Tools"
+ bl_options = {"DEFAULT_CLOSED"}
+
+ def draw(self, context):
+ scene = context.scene
+ VERTDROP = scene.mesh_extra_tools.UiTabDrop[0]
+ EDGEDROP = scene.mesh_extra_tools.UiTabDrop[1]
+ FACEDROP = scene.mesh_extra_tools.UiTabDrop[2]
+ UTILSDROP = scene.mesh_extra_tools.UiTabDrop[3]
+ # Change icons depending on the bool state (complient with the rest of the UI)
+ icon_active_0 = "TRIA_RIGHT" if not VERTDROP else "TRIA_DOWN"
+ icon_active_1 = "TRIA_RIGHT" if not EDGEDROP else "TRIA_DOWN"
+ icon_active_2 = "TRIA_RIGHT" if not FACEDROP else "TRIA_DOWN"
+ icon_active_3 = "TRIA_RIGHT" if not UTILSDROP else "TRIA_DOWN"
+
+ layout = self.layout
+
+ # Vert options
+ box1 = self.layout.box()
+ col = box1.column(align=True)
+ row = col.row(align=True)
+ row.prop(scene.mesh_extra_tools, "UiTabDrop", text="Vertex", index=0, icon=icon_active_0)
+ if not VERTDROP:
+ row.menu("mesh.vert_select_tools", icon="RESTRICT_SELECT_OFF", text="")
+ row.menu("VIEW3D_MT_Select_Vert", icon="VERTEXSEL", text="")
+ else:
+ layout = self.layout
+
+ row = layout.row()
+ row.label(text="Vertex Tools:", icon="VERTEXSEL")
+
+ row = layout.split(0.8, align=True)
+ row.operator("mesh.vertex_chamfer", text="Chamfer")
+ row.operator("mesh.extra_tools_help",
+ icon="LAYER_USED").help_ids = "mesh_vertex_chamfer"
+
+ row = layout.split(0.8, align=True)
+ row.operator("mesh.random_vertices", text="Random Vertices")
+ row.operator("mesh.extra_tools_help",
+ icon="LAYER_USED").help_ids = "random_vertices"
+
+ # Edge options
+ box1 = self.layout.box()
+ col = box1.column(align=True)
+ row = col.row(align=True)
+ row.prop(scene.mesh_extra_tools, "UiTabDrop", text="Edge", index=1, icon=icon_active_1)
+
+ if not EDGEDROP:
+ row.menu("mesh.edge_select_tools", icon="RESTRICT_SELECT_OFF", text="")
+ row.menu("VIEW3D_MT_Select_Edge", icon="EDGESEL", text="")
+ else:
+ layout = self.layout
+
+ row = layout.row()
+ row.label(text="Edge Tools:", icon="EDGESEL")
+ row.menu("VIEW3D_MT_edit_mesh_edgetools", icon="GRID")
+
+ row = layout.split(0.8, align=True)
+ row.operator("mesh.fillet_plus", text="Fillet plus")
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list