Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-30 04:27:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-30 04:27:36 +0300
commitf53017167bdd9854a65690c23cbc90cf1f9d37ea (patch)
tree75da45a520bed7e8464c255fb2cf5952c767bd34 /oscurart_tools
parentfba8c3db998fb8deb2e85037581b748ee895952c (diff)
Cleanup: warnings in descriptions (end with '.')
Diffstat (limited to 'oscurart_tools')
-rw-r--r--oscurart_tools/oscurart_animation.py12
-rw-r--r--oscurart_tools/oscurart_files.py10
-rw-r--r--oscurart_tools/oscurart_meshes.py25
-rw-r--r--oscurart_tools/oscurart_objects.py22
-rw-r--r--oscurart_tools/oscurart_overrides.py19
-rw-r--r--oscurart_tools/oscurart_render.py25
-rw-r--r--oscurart_tools/oscurart_shapes.py10
7 files changed, 71 insertions, 52 deletions
diff --git a/oscurart_tools/oscurart_animation.py b/oscurart_tools/oscurart_animation.py
index 0a771aea..16806690 100644
--- a/oscurart_tools/oscurart_animation.py
+++ b/oscurart_tools/oscurart_animation.py
@@ -25,8 +25,8 @@ from mathutils import Matrix
def DefQuickParent(inf, out):
- if bpy.context.object.type == "ARMATURE":
- ob = bpy.context.object
+ ob = bpy.context.object
+ if ob.type == "ARMATURE":
target = [object for object in bpy.context.selected_objects if object != ob][0]
ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
target.select = False
@@ -39,7 +39,6 @@ def DefQuickParent(inf, out):
ob.matrix = target.matrix_world * a * i
bpy.ops.anim.keyframe_insert(type="LocRotScale")
else:
- ob = bpy.context.object
target = [object for object in bpy.context.selected_objects if object != ob][0]
ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
target.select = False
@@ -53,8 +52,8 @@ def DefQuickParent(inf, out):
bpy.ops.anim.keyframe_insert(type="LocRotScale")
-class QuickParent (bpy.types.Operator):
- """Creates a parent from one object to other in a selected frame range."""
+class QuickParent(bpy.types.Operator):
+ """Creates a parent from one object to other in a selected frame range"""
bl_idname = "anim.quick_parent_osc"
bl_label = "Quick Parent"
bl_options = {"REGISTER", "UNDO"}
@@ -62,5 +61,6 @@ class QuickParent (bpy.types.Operator):
def execute(self, context):
DefQuickParent(
bpy.context.scene.quick_animation_in,
- bpy.context.scene.quick_animation_out)
+ bpy.context.scene.quick_animation_out,
+ )
return {'FINISHED'}
diff --git a/oscurart_tools/oscurart_files.py b/oscurart_tools/oscurart_files.py
index cb3c71cb..9582b8ed 100644
--- a/oscurart_tools/oscurart_files.py
+++ b/oscurart_tools/oscurart_files.py
@@ -27,7 +27,7 @@ import os
class reloadImages (Operator):
- """Reloads all bitmaps in the scene."""
+ """Reloads all bitmaps in the scene"""
bl_idname = "image.reload_images_osc"
bl_label = "Reload Images"
bl_options = {"REGISTER", "UNDO"}
@@ -41,7 +41,7 @@ class reloadImages (Operator):
# ------------------------ SAVE INCREMENTAL ------------------------
class saveIncremental(Operator):
- """Saves incremental version of the blend file Ex: “_v01” "_v02"."""
+ """Saves incremental version of the blend file Ex: '_v01' '_v02'"""
bl_idname = "file.save_incremental_osc"
bl_label = "Save Incremental File"
bl_options = {"REGISTER", "UNDO"}
@@ -72,7 +72,8 @@ bpy.types.Scene.oscReplaceText = bpy.props.StringProperty(
class replaceFilePath(Operator):
- """Replace the paths set on the “search test” field by the ones in “replace” field. "_v01" »» "_v02" /folder1/render_v01.png »» /folder1/render_v02.png"""
+ """Replace the paths set on the “search test” field by the ones in “replace” field. """ \
+ """'_v01' »» '_v02' /folder1/render_v01.png »» /folder1/render_v02.png"""
bl_idname = "file.replace_file_path_osc"
bl_label = "Replace File Path"
bl_options = {"REGISTER", "UNDO"}
@@ -90,7 +91,8 @@ class replaceFilePath(Operator):
# ---------------------- SYNC MISSING GROUPS --------------------------
class reFreshMissingGroups(Operator):
- """Search on the libraries of the linked source and relink groups and link newones if there are. Usefull to use with the mesh cache tools."""
+ """Search on the libraries of the linked source and relink groups and link newones if there are. """ \
+ """Usefull to use with the mesh cache tools"""
bl_idname = "file.sync_missing_groups"
bl_label = "Sync Missing Groups"
bl_options = {"REGISTER", "UNDO"}
diff --git a/oscurart_tools/oscurart_meshes.py b/oscurart_tools/oscurart_meshes.py
index 595a0971..37ebe5c4 100644
--- a/oscurart_tools/oscurart_meshes.py
+++ b/oscurart_tools/oscurart_meshes.py
@@ -76,8 +76,9 @@ def defReconst(self, OFFSET):
use_subsurf_data=0)
-class reConst (Operator):
- """Erase vertices bellow cero X position value and rebuilds the symmetry. It also creates two uv channels, one simmetrical and one asymmetrical."""
+class reConst(Operator):
+ """Erase vertices bellow cero X position value and rebuilds the symmetry. """
+ """It also creates two uv channels, one symmetrical and one asymmetrical"""
bl_idname = "mesh.reconst_osc"
bl_label = "ReConst Mesh"
bl_options = {"REGISTER", "UNDO"}
@@ -121,7 +122,7 @@ def side(self, nombre, offset):
class SelectMenor (Operator):
- """Selects the vetex with an N position value on the X axis."""
+ """Selects the vetex with an N position value on the X axis"""
bl_idname = "mesh.select_side_osc"
bl_label = "Select Side"
bl_options = {"REGISTER", "UNDO"}
@@ -151,7 +152,7 @@ class SelectMenor (Operator):
class resymVertexGroups (Operator):
- """Copies the symetrical weight value of the vertices on the X axys. It needs the XML map."""
+ """Copies the symetrical weight value of the vertices on the X axys. It needs the XML map"""
bl_idname = "mesh.resym_vertex_weights_osc"
bl_label = "Resym Vertex Weights"
bl_options = {"REGISTER", "UNDO"}
@@ -254,7 +255,8 @@ def reSymMesh(self, SELECTED, SIDE):
class OscResymSave (Operator):
- """Creates a file on disk that saves the info of every vertex but in simmetry, this info its going to be later used by “Resym Mesh” and “Resym Vertex Weights” """
+ """Creates a file on disk that saves the info of every vertex but in simmetry, """ \
+ """this info its going to be later used by “Resym Mesh” and “Resym Vertex Weights”"""
bl_idname = "mesh.resym_save_map"
bl_label = "Resym save XML Map"
bl_options = {"REGISTER", "UNDO"}
@@ -275,7 +277,7 @@ class OscResymSave (Operator):
class OscResymMesh (Operator):
- """Copies the symetrical position of the vertices on the X axys. It needs the XML map."""
+ """Copies the symetrical position of the vertices on the X axys. It needs the XML map"""
bl_idname = "mesh.resym_mesh"
bl_label = "Resym save Apply XML"
bl_options = {"REGISTER", "UNDO"}
@@ -315,7 +317,7 @@ def DefOscObjectToMesh():
class OscObjectToMesh(Operator):
- """It creates a copy of the final state of the object as it being see in the viewport."""
+ """It creates a copy of the final state of the object as it being see in the viewport"""
bl_idname = "mesh.object_to_mesh_osc"
bl_idname = "mesh.object_to_mesh_osc"
bl_label = "Object To Mesh"
@@ -391,7 +393,8 @@ def DefOscOverlapUv(valpresicion):
class OscOverlapUv(Operator):
- """Overlaps the uvs on one side of the model symmetry plane. Usefull to get more detail on fixed resolution bitmaps."""
+ """Overlaps the uvs on one side of the model symmetry plane. """ \
+ """Useful to get more detail on fixed resolution bitmaps"""
bl_idname = "mesh.overlap_uv_faces"
bl_label = "Overlap Uvs"
bl_options = {"REGISTER", "UNDO"}
@@ -432,7 +435,7 @@ def dibuja_callback(self, context):
class ModalIndexOperator(Operator):
- """Allow to visualize the index number for vertices in the viewport."""
+ """Allow to visualize the index number for vertices in the viewport"""
bl_idname = "view3d.modal_operator"
bl_label = "Print Vertices"
@@ -498,7 +501,7 @@ def SelDoubles(self, context):
class SelectDoubles(Operator):
- """Selects duplicated vertex without merge them."""
+ """Selects duplicated vertex without merge them"""
bl_idname = "mesh.select_doubles"
bl_label = "Select Doubles"
bl_options = {"REGISTER", "UNDO"}
@@ -512,4 +515,4 @@ class SelectDoubles(Operator):
def execute(self, context):
SelDoubles(self, context)
- return {'FINISHED'} \ No newline at end of file
+ return {'FINISHED'}
diff --git a/oscurart_tools/oscurart_objects.py b/oscurart_tools/oscurart_objects.py
index dda2aa89..47b01378 100644
--- a/oscurart_tools/oscurart_objects.py
+++ b/oscurart_tools/oscurart_objects.py
@@ -28,7 +28,7 @@ from bpy_extras.object_utils import world_to_camera_view
class SearchAndSelectOt(bpy.types.Operator):
- """Search and select objects, by name."""
+ """Search and select objects, by name"""
bl_idname = "object.search_and_select_osc"
bl_label = "Search And Select"
bl_options = {"REGISTER", "UNDO"}
@@ -59,7 +59,7 @@ bpy.types.Scene.RenameObjectOt = bpy.props.StringProperty(default="Type here")
class renameObjectsOt (Operator):
- """Batch rename objects, supports selection order."""
+ """Batch rename objects, supports selection order"""
bl_idname = "object.rename_objects_osc"
bl_label = "Rename Objects"
bl_options = {"REGISTER", "UNDO"}
@@ -76,7 +76,7 @@ class renameObjectsOt (Operator):
# ---------------------------REMOVE MODIFIERS Y APPLY MODIFIERS-----------
class oscRemModifiers (Operator):
- """Removes all modifiers in the selected objects."""
+ """Removes all modifiers in the selected objects"""
bl_idname = "object.modifiers_remove_osc"
bl_label = "Remove modifiers"
bl_options = {"REGISTER", "UNDO"}
@@ -91,7 +91,7 @@ class oscRemModifiers (Operator):
class oscApplyModifiers (Operator):
- """Applys all the modifiers in the selected objects.(This does not work in objects with shapekeys)."""
+ """Applys all the modifiers in the selected objects.(This does not work in objects with shapekeys)"""
bl_idname = "object.modifiers_apply_osc"
bl_label = "Apply modifiers"
bl_options = {"REGISTER", "UNDO"}
@@ -161,7 +161,7 @@ def relinkObjects(self):
class OscRelinkObjectsBetween (Operator):
- """Copies from the selected object the scenes where this is. Its similar to "Objects to Scene"."""
+ """Copies from the selected object the scenes where this is. Its similar to 'Objects to Scene'"""
bl_idname = "object.relink_objects_between_scenes"
bl_label = "Relink Objects Between Scenes"
bl_options = {"REGISTER", "UNDO"}
@@ -211,7 +211,7 @@ def CopyObjectGroupsAndLayers(self):
class OscCopyObjectGAL (Operator):
- """Copies to scenes the layers setup in the active scene of the selected object."""
+ """Copies to scenes the layers setup in the active scene of the selected object"""
bl_idname = "object.copy_objects_groups_layers"
bl_label = "Copy Groups And Layers"
bl_options = {"REGISTER", "UNDO"}
@@ -327,7 +327,7 @@ def DefSetLayersToOtherScenes():
class SetLayersToOtherScenes (Operator):
- """Copies to scenes the layers setup in the active scene of the selected object."""
+ """Copies to scenes the layers setup in the active scene of the selected object"""
bl_idname = "object.set_layers_to_other_scenes"
bl_label = "Copy actual Layers to Other Scenes"
bl_options = {"REGISTER", "UNDO"}
@@ -376,7 +376,8 @@ def DefRenderOnlyInCamera():
class RenderOnlyInCamera (Operator):
- """Create two different groups, one group contains the objetcs that are in the camera frame, those that camera can see, and then a second group that contains the object that the camera can`t see."""
+ """Create two different groups, one group contains the objetcs that are in the camera frame, """ \
+ """those that camera can see, and then a second group that contains the object that the camera can`t see"""
bl_idname = "group.group_in_out_camera"
bl_label = "Make a group for objects in outer camera"
bl_options = {"REGISTER", "UNDO"}
@@ -508,7 +509,7 @@ def duplicateSymmetrical(self, disconect):
class oscDuplicateSymmetricalOp (Operator):
- """Creates a symmetrical copy on the X axys, also Links by drivers position, rotation and scale."""
+ """Creates a symmetrical copy on the X axys, also Links by drivers position, rotation and scale"""
bl_idname = "object.duplicate_object_symmetry_osc"
bl_label = "Oscurart Duplicate Symmetrical"
bl_options = {"REGISTER", "UNDO"}
@@ -536,7 +537,8 @@ def DefObjectToGroups():
class ObjectsToGroups (Operator):
- """Creates a group("_MESH") containing all the mesh type objects in the scene. Creates a group(“object_name”) per mesh type object."""
+ """Creates a group("_MESH") containing all the mesh type objects in the scene. """ \
+ """Creates a group(“object_name”) per mesh type object"""
bl_idname = "object.objects_to_groups"
bl_label = "Objects to Groups"
bl_options = {"REGISTER", "UNDO"}
diff --git a/oscurart_tools/oscurart_overrides.py b/oscurart_tools/oscurart_overrides.py
index f9d103ca..2fc18d3b 100644
--- a/oscurart_tools/oscurart_overrides.py
+++ b/oscurart_tools/oscurart_overrides.py
@@ -62,7 +62,8 @@ def DefOscRestoreOverrides(self):
# HAND OPERATOR
class OscApplyOverrides(Operator):
- """>>>Danger Option<<< Apply and restore override materials, similar as ON/OFF its basically the same, save before try it."""
+ """>>>Danger Option<<< Apply and restore override materials, """ \
+ """similar as ON/OFF its basically the same, save before try it"""
bl_idname = "render.apply_overrides"
bl_label = "Apply Overrides in this Scene"
bl_options = {"REGISTER", "UNDO"}
@@ -73,7 +74,8 @@ class OscApplyOverrides(Operator):
class OscRestoreOverrides(Operator):
- """>>>Danger Option<<< Apply and restore override materials, similar as ON/OFF its basically the same, save before try it."""
+ """>>>Danger Option<<< Apply and restore override materials, """ \
+ """similar as ON/OFF its basically the same, save before try it"""
bl_idname = "render.restore_overrides"
bl_label = "Restore Overrides in this Scene"
bl_options = {"REGISTER", "UNDO"}
@@ -86,7 +88,9 @@ bpy.use_overrides = False
class OscOverridesOn(Operator):
- """>>>Danger Option<<< its recommended to save before try it, it replace all materials by the override materials, its posible once active to see the objects rendering as override render by pressing F12."""
+ """>>>Danger Option<<< its recommended to save before try it, """ \
+ """it replace all materials by the override materials, """ \
+ """its possible once active to see the objects rendering as override render by pressing F12"""
bl_idname = "render.overrides_on"
bl_label = "Turn On Overrides"
bl_options = {"REGISTER", "UNDO"}
@@ -108,7 +112,7 @@ class OscOverridesOn(Operator):
# -------------------- CHECK OVERRIDES -------------------
class OscCheckOverrides(Operator):
- """Check all overrides to verify if there is all set up properly, info its display in the console."""
+ """Check all overrides to verify if there is all set up properly, info its display in the console"""
bl_idname = "render.check_overrides"
bl_label = "Check Overrides"
bl_options = {"REGISTER", "UNDO"}
@@ -265,7 +269,8 @@ class OscOverridesKill(Operator):
class OscTransferOverrides(Operator):
- """Applies the previously configured slots (Groups < Material) to the Scene.This should be transfer once the override groups are set."""
+ """Applies the previously configured slots (Groups < Material) to the Scene. """ \
+ """This should be transfer once the override groups are set"""
bl_idname = "render.overrides_transfer"
bl_label = "Transfer Overrides"
@@ -280,7 +285,7 @@ class OscTransferOverrides(Operator):
class OscAddOverridesSlot(Operator):
- """Add override slot."""
+ """Add override slot"""
bl_idname = "render.overrides_add_slot"
bl_label = "Add Override Slot"
@@ -292,7 +297,7 @@ class OscAddOverridesSlot(Operator):
class OscRemoveOverridesSlot(Operator):
- """Remove override slot."""
+ """Remove override slot"""
bl_idname = "render.overrides_remove_slot"
bl_label = "Remove Override Slot"
diff --git a/oscurart_tools/oscurart_render.py b/oscurart_tools/oscurart_render.py
index c3dbe8a9..58ecc526 100644
--- a/oscurart_tools/oscurart_render.py
+++ b/oscurart_tools/oscurart_render.py
@@ -101,7 +101,8 @@ def defRenderAll(frametype, scenes):
class renderAll (Operator):
- """Renders all scenes executing the Oscurart overrides if those are set up. Saves the renders in their respective folders using the scenes and render layers names."""
+ """Renders all scenes executing the Oscurart overrides if those are set up. """ \
+ """Saves the renders in their respective folders using the scenes and render layers names"""
bl_idname = "render.render_all_scenes_osc"
bl_label = "Render All Scenes"
@@ -118,7 +119,8 @@ bpy.types.Scene.use_render_scene = bpy.props.BoolProperty()
class renderSelected (Operator):
- """Renders the seleccted scenes on the checkboxes, executing the Oscurart overrides if it was set up. Saves the renders in their respective folders using the scenes and render layers names."""
+ """Renders the seleccted scenes on the checkboxes, executing the Oscurart overrides if it was set up. """ \
+ """Saves the renders in their respective folders using the scenes and render layers names"""
bl_idname = "render.render_selected_scenes_osc"
bl_label = "Render Selected Scenes"
@@ -134,7 +136,8 @@ class renderSelected (Operator):
class renderCurrent (Operator):
- """Renders the active scene executing the Oscurart overrides if it was set up. Saves the renders in their respective folders using the scenes and render layers names."""
+ """Renders the active scene executing the Oscurart overrides if it was set up. """ \
+ """Saves the renders in their respective folders using the scenes and render layers names"""
bl_idname = "render.render_current_scene_osc"
bl_label = "Render Current Scene"
@@ -176,7 +179,8 @@ def OscRenderCropFunc():
class renderCrop (Operator):
- """It renders croping the image in to a X number of pieces. Usefull for rendering really big images."""
+ """It renders croping the image in to a X number of pieces. """ \
+ """Useful for rendering really big images"""
bl_idname = "render.render_crop_osc"
bl_label = "Render Crop: Render!"
@@ -260,7 +264,7 @@ def defoscBatchMaker(TYPE, BIN):
class oscBatchMaker (Operator):
- """It creates .bat(win) or .sh(unix) file, to execute and render from Console/Terminal."""
+ """It creates .bat(win) or .sh(unix) file, to execute and render from Console/Terminal"""
bl_idname = "file.create_batch_maker_osc"
bl_label = "Make render batch"
bl_options = {'REGISTER', 'UNDO'}
@@ -381,7 +385,10 @@ while REPITE:
class oscPythonBatchMaker (Operator):
- """It creates a file as “Make Render Batch” but it requires Phyton installed and the respective environment variables set up. If the render crahses, the batch automatically erase the broken frame and writes it again. Its not recommended if there is more than one machine rendering."""
+ """It creates a file as “Make Render Batch” but it requires Phyton installed and """ \
+ """the respective environment variables set up. """ \
+ """If the render crahses, the batch automatically erase the broken frame and writes it again. """ \
+ """Its not recommended if there is more than one machine rendering"""
bl_idname = "file.create_batch_python"
bl_label = "Make Batch Python"
bl_options = {'REGISTER', 'UNDO'}
@@ -412,7 +419,7 @@ bpy.utils.register_class(VarColArchivos)
class SumaFile(Operator):
- """Look for broken rendered files and shows it."""
+ """Look for broken rendered files and shows it"""
bl_idname = "object.add_broken_file"
bl_label = "Add Broken Files"
@@ -435,7 +442,7 @@ class SumaFile(Operator):
class ClearFile(Operator):
- """Erase the list of broken frames."""
+ """Erase the list of broken frames"""
bl_idname = "object.clear_broken_file"
bl_label = "Clear Broken Files"
@@ -445,7 +452,7 @@ class ClearFile(Operator):
class DeleteFiles(Operator):
- """Erase the broken frames files from Disk."""
+ """Erase the broken frames files from Disk"""
bl_idname = "object.delete_broken_file"
bl_label = "Delete Broken Files"
diff --git a/oscurart_tools/oscurart_shapes.py b/oscurart_tools/oscurart_shapes.py
index fc05f7e7..ec094c2d 100644
--- a/oscurart_tools/oscurart_shapes.py
+++ b/oscurart_tools/oscurart_shapes.py
@@ -69,7 +69,7 @@ def DefSplitShapes(self, ACTIVESHAPE, LAYOUTCOMPAT):
class CreaShapes(Operator):
- """Divide on left and right the diffenrent Shapekeys. “Create Mix Groups” its required."""
+ """Divide on left and right the diffenrent Shapekeys. “Create Mix Groups” its required"""
bl_idname = "mesh.split_lr_shapes_osc"
bl_label = "Split LR Shapes"
bl_options = {"REGISTER", "UNDO"}
@@ -103,7 +103,7 @@ class CreaShapes(Operator):
# ----------------------------SHAPES LAYOUT-----------------------
class CreaShapesLayout(Operator):
- """Creates an interface to control the Shapekeys of symmetrical Objects. “Create Mix Groups” its required."""
+ """Creates an interface to control the Shapekeys of symmetrical Objects. “Create Mix Groups” its required"""
bl_idname = "mesh.create_symmetrical_layout_osc"
bl_label = "Symmetrical Layout"
bl_options = {"REGISTER", "UNDO"}
@@ -275,7 +275,7 @@ def createLMRGroups(self, FACTORVG, ADDVG):
class CreaGrupos(Operator):
- """It creates a vertex group in symmetrical objects, ideal for smoothly mixing shapekeys."""
+ """It creates a vertex group in symmetrical objects, ideal for smoothly mixing shapekeys"""
bl_idname = "mesh.create_lmr_groups_osc"
bl_label = "Create Mix groups"
bl_options = {'REGISTER', 'UNDO'}
@@ -308,7 +308,7 @@ class CreaGrupos(Operator):
# ------------------------ SHAPES LAYOUT SYMMETRICA ------------------------
class CreateLayoutAsymmetrical(Operator):
- """Creates an interface to control the Shapekeys of symmetrical Objects. “Create Mix Groups” its required."""
+ """Creates an interface to control the Shapekeys of symmetrical Objects. “Create Mix Groups” its required"""
bl_idname = "mesh.create_asymmetrical_layout_osc"
bl_label = "Asymmetrical Layout"
bl_options = {"REGISTER", "UNDO"}
@@ -444,7 +444,7 @@ class CreateLayoutAsymmetrical(Operator):
# ---------------------------SHAPES TO OBJECTS------------------
class ShapeToObjects(Operator):
- """It creates a new object for every shapekey in the selected object, ideal to export to other 3D software Apps."""
+ """It creates a new object for every shapekey in the selected object, ideal to export to other 3D software Apps"""
bl_idname = "object.shape_key_to_objects_osc"
bl_label = "Shapes To Objects"
bl_options = {"REGISTER", "UNDO"}