[Bf-extensions-cvs] [5a7e6f37] master: mseh_extra_tools: moved to contrib: T63750
meta-androcto
noreply at git.blender.org
Fri May 24 08:06:14 CEST 2019
Commit: 5a7e6f37d2b5bf90d4e18ea675d85011e283cec0
Author: meta-androcto
Date: Fri May 24 16:05:33 2019 +1000
Branches: master
https://developer.blender.org/rBAC5a7e6f37d2b5bf90d4e18ea675d85011e283cec0
mseh_extra_tools: moved to contrib: T63750
===================================================================
A mesh_extra_tools/__init__.py
A mesh_extra_tools/face_inset_fillet.py
A mesh_extra_tools/icons/icons.py
A mesh_extra_tools/icons/ngon.png
A mesh_extra_tools/icons/triangle.png
A mesh_extra_tools/mesh_check.py
A mesh_extra_tools/mesh_cut_faces.py
A mesh_extra_tools/mesh_edge_roundifier.py
A mesh_extra_tools/mesh_edges_floor_plan.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_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/vertex_align.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 00000000..669d22f0
--- /dev/null
+++ b/mesh_extra_tools/__init__.py
@@ -0,0 +1,905 @@
+# ##### 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, Gert De Roost, TrumanBlending, PKHG, #
+# Oscurart, Greg, Stanislav Blinov, komi3D, BlenderLab, Paul Marshall (brikbot), #
+# metalliandy, macouno, CoDEmanX, dustractor, Liero, lijenstina, Germano Cavalcante #
+# Pistiwique, Jimmy Hazevoet #
+
+bl_info = {
+ "name": "Edit Tools 2",
+ "author": "meta-androcto",
+ "version": (0, 3, 4),
+ "blender": (2, 78, 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",
+ "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_edges_floor_plan)
+ 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_context_menu)
+ 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)
+ importlib.reload(mesh_check)
+ importlib.reload(vertex_align)
+
+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_edges_floor_plan
+ 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_context_menu
+ from . import mesh_help
+ from . import mesh_extrude_and_reshape
+ from . import mesh_check
+ from . import vertex_align
+
+ 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
+
+ from . icons.icons import load_icons
+
+import bpy
+import bpy_extras.keyconfig_utils
+from bpy.types import (
+ Menu,
+ Panel,
+ PropertyGroup,
+ AddonPreferences,
+ )
+from bpy.props import (
+ BoolProperty,
+ BoolVectorProperty,
+ EnumProperty,
+ FloatProperty,
+ FloatVectorProperty,
+ 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("mesh.edges_floor_plan")
+
+ 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 (compliant 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"
+
+ # Vertex Align Properties And Menu
+ cen0 = scene.mesh_extra_tools.vert_align_to
+
+ layout = self.layout
+ layout.label(text="Vertex Align:", icon="UV_VERTEXSEL")
+
+ # Draw the menu with 2 options
+ layout.prop(scene.mesh_extra_tools, "vert_align_to", expand=False)
+ if cen0 == 'vertex':
+ row = layout.row(align=True)
+ row.operator("vertex_align.store_id", tex
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list