[Bf-extensions-cvs] [3218a23] master: initial commit oscurart tools. re: T48708

meta-androcto noreply at git.blender.org
Sun Aug 7 15:35:07 CEST 2016


Commit: 3218a23e11dfb9cd3f4fd2421e93a2fdb77a0a66
Author: meta-androcto
Date:   Sun Aug 7 23:34:46 2016 +1000
Branches: master
https://developer.blender.org/rBA3218a23e11dfb9cd3f4fd2421e93a2fdb77a0a66

initial commit oscurart tools. re: T48708

===================================================================

A	oscurart_tools/__init__.py
A	oscurart_tools/oscurart_animation.py
A	oscurart_tools/oscurart_files.py
A	oscurart_tools/oscurart_meshes.py
A	oscurart_tools/oscurart_objects.py
A	oscurart_tools/oscurart_render.py
A	oscurart_tools/oscurart_shapes.py

===================================================================

diff --git a/oscurart_tools/__init__.py b/oscurart_tools/__init__.py
new file mode 100644
index 0000000..ba217ac
--- /dev/null
+++ b/oscurart_tools/__init__.py
@@ -0,0 +1,391 @@
+# ##### 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 #####
+
+# <pep8 compliant>
+
+bl_info = {
+    "name": "Oscurart Tools",
+    "author": "Oscurart, CodemanX",
+    "version": (3, 2),
+    "blender": (2, 77, 0),
+    "location": "View3D > Tools > Oscurart Tools",
+    "description": "Tools for objects, render, shapes, and files.",
+    "warning": "",
+    "wiki_url":
+        "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/Oscurart_Tools",
+    "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
+    "category": "Object",
+    }
+
+import bpy
+from bpy.types import (
+            AddonPreferences,
+            Panel,
+            PropertyGroup,
+            )
+
+from bpy.props import (
+            StringProperty,
+            BoolProperty,
+            IntProperty,
+            )
+
+from . import oscurart_files
+from . import oscurart_meshes
+from . import oscurart_objects
+from . import oscurart_shapes
+from . import oscurart_render
+from . import oscurart_animation
+
+
+class View3DOscPanel(PropertyGroup):
+    # CREA PANELES EN TOOLS
+    osc_object_tools = BoolProperty(default=True)
+    osc_mesh_tools = BoolProperty(default=True)
+    osc_shapes_tools = BoolProperty(default=True)
+    osc_render_tools = BoolProperty(default=True)
+    osc_files_tools = BoolProperty(default=True)
+    osc_animation_tools = BoolProperty(default=True)
+
+    quick_animation_in = IntProperty(
+                        default=1
+                        )
+    quick_animation_out = IntProperty(
+                        default=250
+                        )
+    # SETEO VARIABLE DE ENTORNO
+    SearchAndSelectOt = StringProperty(
+                        default="Object name initials"
+                        )
+    # RENDER CROP
+    rcPARTS = IntProperty(
+                        default=1,
+                        min=2,
+                        max=50,
+                        step=1
+                            )
+    RenameObjectOt = StringProperty(
+                        default="Type here"
+                        )
+
+
+class VarColArchivos(PropertyGroup):
+    filename = bpy.props.StringProperty(
+                        name="",
+                        default=""
+                        )
+    value = bpy.props.IntProperty(
+                        name="",
+                        default=10
+                        )
+    fullpath = bpy.props.StringProperty(
+                        name="",
+                        default=""
+                        )
+    checkbox = bpy.props.BoolProperty(
+                        name="",
+                        default=True
+                        )
+
+
+# PANELES
+class OscPanelControl(Panel):
+    bl_idname = "Oscurart Panel Control"
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_category = "Oscurart Tools"
+    bl_label = "Panels Switcher"
+    bl_options = {'DEFAULT_CLOSED'}
+
+    def draw(self, context):
+        layout = self.layout
+        scene = context.scene
+        oscurart = scene.oscurart
+
+        col = layout.column(align=1)
+        col.prop(oscurart, "osc_object_tools", text="Object", icon="OBJECT_DATAMODE")
+        col.prop(oscurart, "osc_mesh_tools", text="Mesh", icon="EDITMODE_HLT")
+        col.prop(oscurart, "osc_shapes_tools", text="Shapes", icon="SHAPEKEY_DATA")
+        col.prop(oscurart, "osc_animation_tools", text="Animation", icon="POSE_DATA")
+        col.prop(oscurart, "osc_render_tools", text="Render", icon="SCENE")
+        col.prop(oscurart, "osc_files_tools", text="Files", icon="IMASEL")
+
+
+class OscPanelObject(Panel):
+    bl_idname = "Oscurart Object Tools"
+    bl_label = "Object Tools"
+    bl_category = "Oscurart Tools"
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_options = {'DEFAULT_CLOSED'}
+
+    @classmethod
+    def poll(cls, context):
+        return context.scene.oscurart.osc_object_tools
+
+    def draw(self, context):
+        layout = self.layout
+        col = layout.column(align=1)
+
+        colrow = col.row(align=1)
+        colrow.operator("object.relink_objects_between_scenes", icon="LINKED")
+        colrow = col.row(align=1)
+        colrow.operator("object.copy_objects_groups_layers", icon="LINKED")
+        colrow.operator("object.set_layers_to_other_scenes", icon="LINKED")
+        colrow = col.row(align=1)
+        colrow.operator("object.objects_to_groups", icon="GROUP")
+        colrow = col.row(align=1)
+        colrow.prop(bpy.context.scene.oscurart, "SearchAndSelectOt", text="")
+        colrow.operator("object.search_and_select_osc", icon="ZOOM_SELECTED")
+        colrow = col.row(align=1)
+        colrow.prop(bpy.context.scene.oscurart, "RenameObjectOt", text="")
+        colrow.operator("object.rename_objects_osc", icon="SHORTDISPLAY")
+        col.operator(
+            "object.distribute_osc",
+            icon="OBJECT_DATAMODE",
+            text="Distribute")
+        col.operator(
+            "object.duplicate_object_symmetry_osc",
+            icon="OUTLINER_OB_EMPTY",
+            text="Duplicate Sym")
+        colrow = col.row(align=1)
+        colrow.operator(
+            "object.modifiers_remove_osc",
+            icon="MODIFIER",
+            text="Remove Modifiers")
+        colrow.operator(
+            "object.modifiers_apply_osc",
+            icon="MODIFIER",
+            text="Apply Modifiers")
+        colrow = col.row(align=1)
+        colrow.operator(
+            "group.group_in_out_camera",
+            icon="RENDER_REGION",
+            text="Make Groups in out Camera")
+
+
+class OscPanelMesh(Panel):
+    bl_idname = "Oscurart Mesh Tools"
+    bl_label = "Mesh Tools"
+    bl_category = "Oscurart Tools"
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_options = {'DEFAULT_CLOSED'}
+
+    @classmethod
+    def poll(cls, context):
+        return context.scene.oscurart.osc_mesh_tools
+
+    def draw(self, context):
+        layout = self.layout
+        col = layout.column(align=1)
+
+        col.operator("mesh.object_to_mesh_osc", icon="MESH_MONKEY")
+        col.operator("mesh.select_side_osc", icon="VERTEXSEL")
+        colrow = col.row(align=1)
+        colrow.operator("mesh.resym_save_map", icon="UV_SYNC_SELECT")
+        colrow = col.row(align=1)
+        colrow.operator(
+            "mesh.resym_mesh",
+            icon="UV_SYNC_SELECT",
+            text="Resym Mesh")
+        colrow.operator("mesh.resym_vertex_weights_osc", icon="UV_SYNC_SELECT")
+        colrow = col.row(align=1)
+        colrow.operator("mesh.reconst_osc", icon="UV_SYNC_SELECT")
+        colrow = col.row(align=1)
+        colrow.operator("mesh.overlap_uv_faces", icon="UV_FACESEL")
+        colrow = col.row(align=1)
+        colrow.operator("view3d.modal_operator", icon="STICKY_UVS_DISABLE")
+        colrow = col.row(align=1)
+        colrow.operator("file.export_groups_osc", icon='GROUP_VCOL')
+        colrow.operator("file.import_groups_osc", icon='GROUP_VCOL')
+        colrow = col.row(align=1)
+        colrow.operator("mesh.export_vertex_colors", icon='COLOR')
+        colrow.operator("mesh.import_vertex_colors", icon='COLOR')
+
+
+class OscPanelShapes(Panel):
+    bl_idname = "Oscurart Shapes Tools"
+    bl_label = "Shapes Tools"
+    bl_category = "Oscurart Tools"
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_options = {'DEFAULT_CLOSED'}
+
+    @classmethod
+    def poll(cls, context):
+        return context.scene.oscurart.osc_shapes_tools
+
+    def draw(self, context):
+        layout = self.layout
+        col = layout.column(align=1)
+
+        col.operator("object.shape_key_to_objects_osc", icon="OBJECT_DATAMODE")
+        col.operator("mesh.create_lmr_groups_osc", icon="GROUP_VERTEX")
+        col.operator("mesh.split_lr_shapes_osc", icon="SHAPEKEY_DATA")
+        colrow = col.row(align=1)
+        colrow.operator("mesh.create_symmetrical_layout_osc", icon="SETTINGS")
+        colrow.operator("mesh.create_asymmetrical_layout_osc", icon="SETTINGS")
+
+
+class OscPanelRender(Panel):
+    bl_idname = "Oscurart Render Tools"
+    bl_label = "Render Tools"
+    bl_category = "Oscurart Tools"
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_options = {'DEFAULT_CLOSED'}
+
+    @classmethod
+    def poll(cls, context):
+        return context.scene.oscurart.osc_render_tools
+
+    def draw(self, context):
+        layout = self.layout
+        col = layout.column(align=1)
+
+        colrow = col.row(align=1)
+        colrow.operator(
+            "render.copy_render_settings_osc",
+            icon="LIBRARY_DATA_DIRECT",
+            text="Copy Render Settings").mode = "render"
+        colrow.operator(
+            "render.copy_render_settings_osc",
+            icon="LIBRARY_DATA_DIRECT",
+            text="Copy Cycles Settings").mode = "cycles"
+        colrow = col.row(align=1)
+        colrow.operator(
+            "render.render_all_scenes_osc",
+            icon="RENDER_STILL",
+            text="All Scenes").frametype = False
+        colrow.operator(
+            "render.render_all_scenes_osc",
+            text="> Frame").frametype = True
+        colrow = col.row(align=1)
+        colrow.operator(
+            "render.render_current_scene_osc

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list