[Bf-extensions-cvs] [55022ea] master: PEP8

Eugenio Pignataro noreply at git.blender.org
Fri Jun 10 18:43:30 CEST 2016


Commit: 55022ea852e935d0914d75f07b7f365da012a9d8
Author: Eugenio Pignataro
Date:   Fri Jun 10 13:43:20 2016 -0300
Branches: master
https://developer.blender.org/rBAC55022ea852e935d0914d75f07b7f365da012a9d8

PEP8

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

M	oscurart_tools/__init__.py
M	oscurart_tools/oscurart_animation.py
M	oscurart_tools/oscurart_files.py
M	oscurart_tools/oscurart_meshes.py
M	oscurart_tools/oscurart_objects.py
M	oscurart_tools/oscurart_overrides.py
M	oscurart_tools/oscurart_render.py
M	oscurart_tools/oscurart_shapes.py

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

diff --git a/oscurart_tools/__init__.py b/oscurart_tools/__init__.py
index 04bd5c3..58a9182 100644
--- a/oscurart_tools/__init__.py
+++ b/oscurart_tools/__init__.py
@@ -1,4 +1,4 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
+# 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
@@ -14,17 +14,18 @@
 #  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 #####
+# END GPL LICENSE BLOCK #####
 
 bl_info = {
     "name": "Oscurart Tools",
     "author": "Oscurart, CodemanX",
-    "version": (3,2),
+    "version": (3, 2),
     "blender": (2, 70, 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",
+    "wiki_url":
+        "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/Oscurart_Tools",
     "tracker_url": "",
     "category": "Object"}
 
@@ -44,11 +45,12 @@ from oscurart_tools.oscurart_render import *
 from oscurart_tools.oscurart_overrides import *
 from oscurart_tools.oscurart_animation import *
 
+
 class View3DOscPanel():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
 
-## CREA PANELES EN TOOLS
+# CREA PANELES EN TOOLS
 bpy.types.Scene.osc_object_tools = bpy.props.BoolProperty(default=False)
 bpy.types.Scene.osc_mesh_tools = bpy.props.BoolProperty(default=False)
 bpy.types.Scene.osc_shapes_tools = bpy.props.BoolProperty(default=False)
@@ -58,7 +60,10 @@ bpy.types.Scene.osc_overrides_tools = bpy.props.BoolProperty(default=False)
 bpy.types.Scene.osc_animation_tools = bpy.props.BoolProperty(default=False)
 
 # PANEL DE CONTROL
+
+
 class OscPanelControl(View3DOscPanel, bpy.types.Panel):
+
     """
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -66,22 +71,52 @@ class OscPanelControl(View3DOscPanel, bpy.types.Panel):
     bl_options = {'DEFAULT_CLOSED'}
     """
     bl_category = "Oscurart Tools"
-    #bl_context = "objectmode"
+    # bl_context = "objectmode"
     bl_label = "Oscurart Tools"
 
-    def draw(self,context):
+    def draw(self, context):
         active_obj = context.active_object
         layout = self.layout
 
         col = layout.column(align=1)
-        col.prop(bpy.context.scene, "osc_object_tools", text="Object", icon="OBJECT_DATAMODE")
-        col.prop(bpy.context.scene, "osc_mesh_tools", text="Mesh", icon="EDITMODE_HLT")
-        col.prop(bpy.context.scene, "osc_shapes_tools", text="Shapes", icon="SHAPEKEY_DATA")
-        col.prop(bpy.context.scene, "osc_animation_tools", text="Animation", icon="POSE_DATA")
-        col.prop(bpy.context.scene, "osc_render_tools", text="Render", icon="SCENE")
-        col.prop(bpy.context.scene, "osc_files_tools", text="Files", icon="IMASEL")
-        col.prop(bpy.context.scene, "osc_overrides_tools", text="Overrides", icon="GREASEPENCIL")
+        col.prop(
+            bpy.context.scene,
+            "osc_object_tools",
+            text="Object",
+            icon="OBJECT_DATAMODE")
+        col.prop(
+            bpy.context.scene,
+            "osc_mesh_tools",
+            text="Mesh",
+            icon="EDITMODE_HLT")
+        col.prop(
+            bpy.context.scene,
+            "osc_shapes_tools",
+            text="Shapes",
+            icon="SHAPEKEY_DATA")
+        col.prop(
+            bpy.context.scene,
+            "osc_animation_tools",
+            text="Animation",
+            icon="POSE_DATA")
+        col.prop(
+            bpy.context.scene,
+            "osc_render_tools",
+            text="Render",
+            icon="SCENE")
+        col.prop(
+            bpy.context.scene,
+            "osc_files_tools",
+            text="Files",
+            icon="IMASEL")
+        col.prop(
+            bpy.context.scene,
+            "osc_overrides_tools",
+            text="Overrides",
+            icon="GREASEPENCIL")
 # POLLS
+
+
 class OscPollObject():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -108,6 +143,7 @@ class OscPollShapes():
     def poll(cls, context):
         return context.scene.osc_shapes_tools
 
+
 class OscPollRender():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -116,6 +152,7 @@ class OscPollRender():
     def poll(cls, context):
         return context.scene.osc_render_tools
 
+
 class OscPollFiles():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -124,6 +161,7 @@ class OscPollFiles():
     def poll(cls, context):
         return context.scene.osc_files_tools
 
+
 class OscPollOverrides():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -132,6 +170,7 @@ class OscPollOverrides():
     def poll(cls, context):
         return context.scene.osc_overrides_tools
 
+
 class OscPollAnimation():
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
@@ -141,7 +180,7 @@ class OscPollAnimation():
         return context.scene.osc_animation_tools
 
 
-## PANELES
+# PANELES
 class OscPanelObject(OscPollObject, bpy.types.Panel):
     bl_idname = "Oscurart Object Tools"
     bl_label = "Object Tools"
@@ -156,7 +195,7 @@ class OscPanelObject(OscPollObject, bpy.types.Panel):
         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.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")
@@ -166,13 +205,29 @@ class OscPanelObject(OscPollObject, bpy.types.Panel):
         colrow = col.row(align=1)
         colrow.prop(bpy.context.scene, "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")
+        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.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")
+        colrow.operator(
+            "group.group_in_out_camera",
+            icon="RENDER_REGION",
+            text="Make Groups in out Camera")
+
 
 class OscPanelMesh(OscPollMesh, bpy.types.Panel):
     bl_idname = "Oscurart Mesh Tools"
@@ -187,23 +242,27 @@ class OscPanelMesh(OscPollMesh, bpy.types.Panel):
 
         col.operator("mesh.object_to_mesh_osc", icon="MESH_MONKEY")
         col.operator("mesh.select_side_osc", icon="VERTEXSEL")
-        colrow=col.row(align=1)
+        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 = 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 = col.row(align=1)
         colrow.operator("mesh.export_vertex_colors", icon='COLOR')
-        colrow.operator("mesh.import_vertex_colors", icon='COLOR')        
+        colrow.operator("mesh.import_vertex_colors", icon='COLOR')
+
 
 class OscPanelShapes(OscPollShapes, bpy.types.Panel):
     bl_idname = "Oscurart Shapes Tools"
@@ -219,10 +278,11 @@ class OscPanelShapes(OscPollShapes, bpy.types.Panel):
         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 = col.row(align=1)
         colrow.operator("mesh.create_symmetrical_layout_osc", icon="SETTINGS")
         colrow.operator("mesh.create_asymmetrical_layout_osc", icon="SETTINGS")
 
+
 class OscPanelRender(OscPollRender, bpy.types.Panel):
     bl_idname = "Oscurart Render Tools"
     bl_label = "Render To

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list