diff options
-rw-r--r-- | add_curve_extra_objects/add_surface_plane_cone.py | 152 | ||||
-rw-r--r-- | add_mesh_extra_objects/add_mesh_beam_builder.py | 2 | ||||
-rw-r--r-- | add_mesh_extra_objects/add_mesh_round_cube.py | 6 | ||||
-rw-r--r-- | oscurart_tools/oscurart_animation.py | 12 | ||||
-rw-r--r-- | oscurart_tools/oscurart_files.py | 10 | ||||
-rw-r--r-- | oscurart_tools/oscurart_meshes.py | 25 | ||||
-rw-r--r-- | oscurart_tools/oscurart_objects.py | 22 | ||||
-rw-r--r-- | oscurart_tools/oscurart_overrides.py | 19 | ||||
-rw-r--r-- | oscurart_tools/oscurart_render.py | 25 | ||||
-rw-r--r-- | oscurart_tools/oscurart_shapes.py | 10 | ||||
-rw-r--r-- | render_povray/__init__.py | 26 | ||||
-rw-r--r-- | render_povray/nodes.py | 62 |
12 files changed, 217 insertions, 154 deletions
diff --git a/add_curve_extra_objects/add_surface_plane_cone.py b/add_curve_extra_objects/add_surface_plane_cone.py index 98369047..58ca48f2 100644 --- a/add_curve_extra_objects/add_surface_plane_cone.py +++ b/add_curve_extra_objects/add_surface_plane_cone.py @@ -42,22 +42,28 @@ class MakeSurfaceWedge(Operator): bl_options = {'REGISTER', 'UNDO'} # get input for size and resolution - size = FloatProperty(name="Size", - description="Size of the object.", - default=1.0, - min=0.01, - max=100.0, - unit="LENGTH") - res_u = IntProperty(name="Resolution U", - description="Surface resolution in u direction", - default=1, - min=1, - max=500) - res_v = IntProperty(name="Resolution V", - description="Surface resolution in v direction", - default=1, - min=1, - max=500) + size = FloatProperty( + name="Size", + description="Size of the object", + default=1.0, + min=0.01, + max=100.0, + unit="LENGTH", + ) + res_u = IntProperty( + name="Resolution U", + description="Surface resolution in u direction", + default=1, + min=1, + max=500, + ) + res_v = IntProperty( + name="Resolution V", + description="Surface resolution in v direction", + default=1, + min=1, + max=500, + ) @classmethod def poll(cls, context): @@ -129,22 +135,28 @@ class MakeSurfaceCone(Operator): bl_context = "object" bl_options = {'REGISTER', 'UNDO'} - size = FloatProperty(name="Size", - description="Size of the object.", - default=1.0, - min=0.01, - max=100.0, - unit="LENGTH") - res_u = IntProperty(name="Resolution U", - description="Surface resolution in u direction", - default=4, - min=1, - max=500) - res_v = IntProperty(name="Resolution V", - description="Surface resolution in v direction", - default=4, - min=1, - max=500) + size = FloatProperty( + name="Size", + description="Size of the object", + default=1.0, + min=0.01, + max=100.0, + unit="LENGTH", + ) + res_u = IntProperty( + name="Resolution U", + description="Surface resolution in u direction", + default=4, + min=1, + max=500, + ) + res_v = IntProperty( + name="Resolution V", + description="Surface resolution in v direction", + default=4, + min=1, + max=500, + ) @classmethod def poll(cls, context): @@ -214,22 +226,28 @@ class MakeSurfaceStar(Operator): bl_context = "object" bl_options = {'REGISTER', 'UNDO'} - size = FloatProperty(name="Size", - description="Size of the object.", - default=1.0, - min=0.01, - max=100.0, - unit="LENGTH") - res_u = IntProperty(name="Resolution U", - description="Surface resolution in u direction", - default=1, - min=1, - max=500) - res_v = IntProperty(name="Resolution V", - description="Surface resolution in v direction", - default=1, - min=1, - max=500) + size = FloatProperty( + name="Size", + description="Size of the object", + default=1.0, + min=0.01, + max=100.0, + unit="LENGTH", + ) + res_u = IntProperty( + name="Resolution U", + description="Surface resolution in u direction", + default=1, + min=1, + max=500, + ) + res_v = IntProperty( + name="Resolution V", + description="Surface resolution in v direction", + default=1, + min=1, + max=500, + ) @classmethod def poll(cls, context): @@ -314,22 +332,28 @@ class MakeSurfacePlane(Operator): bl_context = "object" bl_options = {'REGISTER', 'UNDO'} - size = FloatProperty(name="Size", - description="Size of the object.", - default=1.0, - min=0.01, - max=100.0, - unit="LENGTH") - res_u = IntProperty(name="Resolution U", - description="Surface resolution in u direction", - default=1, - min=1, - max=500) - res_v = IntProperty(name="Resolution V", - description="Surface resolution in v direction", - default=1, - min=1, - max=500) + size = FloatProperty( + name="Size", + description="Size of the object", + default=1.0, + min=0.01, + max=100.0, + unit="LENGTH", + ) + res_u = IntProperty( + name="Resolution U", + description="Surface resolution in u direction", + default=1, + min=1, + max=500, + ) + res_v = IntProperty( + name="Resolution V", + description="Surface resolution in v direction", + default=1, + min=1, + max=500, + ) @classmethod def poll(cls, context): diff --git a/add_mesh_extra_objects/add_mesh_beam_builder.py b/add_mesh_extra_objects/add_mesh_beam_builder.py index 9bbe1e25..8297f9ae 100644 --- a/add_mesh_extra_objects/add_mesh_beam_builder.py +++ b/add_mesh_extra_objects/add_mesh_beam_builder.py @@ -683,7 +683,7 @@ class addBeam(bpy.types.Operator): ("4", "I", "T Beam"), ("5", "T", "I Beam") ), - description="Beam form." + description="Beam form" ) beamZ = FloatProperty( name="Height", diff --git a/add_mesh_extra_objects/add_mesh_round_cube.py b/add_mesh_extra_objects/add_mesh_round_cube.py index d97c6c0b..b56ac3d3 100644 --- a/add_mesh_extra_objects/add_mesh_round_cube.py +++ b/add_mesh_extra_objects/add_mesh_round_cube.py @@ -328,8 +328,10 @@ def round_cube(radius=1.0, arcdiv=4, lindiv=0., size=(0., 0., 0.), class AddRoundCube(bpy.types.Operator, object_utils.AddObjectHelper): bl_idname = "mesh.primitive_round_cube_add" bl_label = "Add Round Cube" - bl_description = ("Create mesh primitives: Quadspheres," - "\nCapsules, Rounded Cuboids, 3D Grids etc.") + bl_description = ( + "Create mesh primitives: Quadspheres, " + "Capsules, Rounded Cuboids, 3D Grids etc" + ) bl_options = {"REGISTER", "UNDO", "PRESET"} sanity_check_verts = 200000 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"} diff --git a/render_povray/__init__.py b/render_povray/__init__.py index 12f291a5..e66e44c2 100644 --- a/render_povray/__init__.py +++ b/render_povray/__init__.py @@ -238,10 +238,11 @@ class RenderPovSettingsScene(PropertyGroup): default=False) ambient_light = FloatVectorProperty( - name="Ambient Light", description="Ambient light is used to simulate the effect of inter-diffuse reflection", + name="Ambient Light", + description="Ambient light is used to simulate the effect of inter-diffuse reflection", precision=4, step=0.01, min=0, soft_max=1, - default=(1, 1, 1), options={'ANIMATABLE'}, subtype='COLOR') - + default=(1, 1, 1), options={'ANIMATABLE'}, subtype='COLOR', + ) global_settings_advanced = BoolProperty( name="Advanced", description="", @@ -253,13 +254,17 @@ class RenderPovSettingsScene(PropertyGroup): default=False) irid_wavelength = FloatVectorProperty( - name="Irid Wavelength", description="Iridescence calculations depend upon the dominant wavelengths of the primary colors of red, green and blue light.", + name="Irid Wavelength", + description=( + "Iridescence calculations depend upon the dominant " + "wavelengths of the primary colors of red, green and blue light" + ), precision=4, step=0.01, min=0, soft_max=1, default=(0.25,0.18,0.14), options={'ANIMATABLE'}, subtype='COLOR') charset = EnumProperty( name="Charset", - description="This allows you to specify the assumed character set of all text strings.", + description="This allows you to specify the assumed character set of all text strings", items=(("ascii", "ASCII", ""), ("utf8", "UTF-8", ""), ("sys", "SYS", "")), @@ -272,7 +277,7 @@ class RenderPovSettingsScene(PropertyGroup): max_intersections = IntProperty( name="Max Intersections", - description="POV-Ray uses a set of internal stacks to collect ray/object intersection points.", + description="POV-Ray uses a set of internal stacks to collect ray/object intersection points", min=2, max=1024, default=64) number_of_waves_enable = BoolProperty( @@ -282,7 +287,10 @@ class RenderPovSettingsScene(PropertyGroup): number_of_waves = IntProperty( name="Number Waves", - description="The waves and ripples patterns are generated by summing a series of waves, each with a slightly different center and size.", + description=( + "The waves and ripples patterns are generated by summing a series of waves, " + "each with a slightly different center and size" + ), min=1, max=10, default=1000) noise_generator_enable = BoolProperty( @@ -292,7 +300,7 @@ class RenderPovSettingsScene(PropertyGroup): noise_generator = IntProperty( name="Noise Generator", - description="There are three noise generators implemented.", + description="There are three noise generators implemented", min=1, max=3, default=2) ########################### PHOTONS ####################################### @@ -423,7 +431,7 @@ class RenderPovSettingsScene(PropertyGroup): radio_maximum_reuse = FloatProperty( name="Maximum Reuse", description="The maximum reuse parameter works in conjunction with, and is similar to that of minimum reuse, " - "the only difference being that it is an upper bound rather than a lower one.", + "the only difference being that it is an upper bound rather than a lower one", min=0.0, max=1.0,default=0.2, precision=3) radio_nearest_count = IntProperty( diff --git a/render_povray/nodes.py b/render_povray/nodes.py index e6ba843d..ef185473 100644 --- a/render_povray/nodes.py +++ b/render_povray/nodes.py @@ -476,20 +476,22 @@ class PovrayColorImageNode(Node, ObjectNodeTree): name="Map type", description="", items=( ('uv_mapping', "UV", ""), - ('0', "Planar", "Default planar mapping."), - ('1', "Spherical", "Spherical mapping."), - ('2', "Cylindrical", "Cylindrical mapping."), - ('5', "Torroidal", "Torus or donut shaped mapping.")), + ('0', "Planar", "Default planar mapping"), + ('1', "Spherical", "Spherical mapping"), + ('2', "Cylindrical", "Cylindrical mapping"), + ('5', "Torroidal", "Torus or donut shaped mapping")), default='0') image = StringProperty(maxlen=1024) # , subtype="FILE_PATH" interpolate = EnumProperty( name="Interpolate", - description="Adding the interpolate keyword can smooth the jagged look of a bitmap.", - items=(('2', "Bilinear", "Gives bilinear interpolation."), - ('4', "Normalized", "Gives normalized distance.")), + description="Adding the interpolate keyword can smooth the jagged look of a bitmap", + items=( + ('2', "Bilinear", "Gives bilinear interpolation"), + ('4', "Normalized", "Gives normalized distance"), + ), default='2') premultiplied = BoolProperty(default=False) - once = BoolProperty(description="Not to repeat.", default=False) + once = BoolProperty(description="Not to repeat", default=False) def init(self, context): @@ -554,20 +556,24 @@ class PovrayBumpMapNode(Node, ObjectNodeTree): map_type = bpy.props.EnumProperty( name="Map type", description="", - items=( ('uv_mapping', "UV", ""), - ('0', "Planar", "Default planar mapping."), - ('1', "Spherical", "Spherical mapping."), - ('2', "Cylindrical", "Cylindrical mapping."), - ('5', "Torroidal", "Torus or donut shaped mapping.")), + items=( + ('uv_mapping', "UV", ""), + ('0', "Planar", "Default planar mapping"), + ('1', "Spherical", "Spherical mapping"), + ('2', "Cylindrical", "Cylindrical mapping"), + ('5', "Torroidal", "Torus or donut shaped mapping") + ), default='0') image = StringProperty(maxlen=1024) # , subtype="FILE_PATH" interpolate = EnumProperty( name="Interpolate", - description="Adding the interpolate keyword can smooth the jagged look of a bitmap.", - items=(('2', "Bilinear", "Gives bilinear interpolation."), - ('4', "Normalized", "Gives normalized distance.")), + description="Adding the interpolate keyword can smooth the jagged look of a bitmap", + items=( + ('2', "Bilinear", "Gives bilinear interpolation"), + ('4', "Normalized", "Gives normalized distance"), + ), default='2') - once = BoolProperty(description="Not to repeat.", default=False) + once = BoolProperty(description="Not to repeat", default=False) def init(self, context): @@ -626,21 +632,25 @@ class PovrayImagePatternNode(Node, ObjectNodeTree): map_type = bpy.props.EnumProperty( name="Map type", description="", - items=( ('uv_mapping', "UV", ""), - ('0', "Planar", "Default planar mapping."), - ('1', "Spherical", "Spherical mapping."), - ('2', "Cylindrical", "Cylindrical mapping."), - ('5', "Torroidal", "Torus or donut shaped mapping.")), + items=( + ('uv_mapping', "UV", ""), + ('0', "Planar", "Default planar mapping"), + ('1', "Spherical", "Spherical mapping"), + ('2', "Cylindrical", "Cylindrical mapping"), + ('5', "Torroidal", "Torus or donut shaped mapping"), + ), default='0') image = StringProperty(maxlen=1024) # , subtype="FILE_PATH" interpolate = EnumProperty( name="Interpolate", - description="Adding the interpolate keyword can smooth the jagged look of a bitmap.", - items=(('2', "Bilinear", "Gives bilinear interpolation."), - ('4', "Normalized", "Gives normalized distance.")), + description="Adding the interpolate keyword can smooth the jagged look of a bitmap", + items=( + ('2', "Bilinear", "Gives bilinear interpolation"), + ('4', "Normalized", "Gives normalized distance"), + ), default='2') premultiplied = BoolProperty(default=False) - once = BoolProperty(description="Not to repeat.", default=False) + once = BoolProperty(description="Not to repeat", default=False) use_alpha = BoolProperty(default=True) def init(self, context): |