Skip to content

Commit

Permalink
Style edit (mostly), use """ for docstrings (not ''').
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Montagne committed Jul 3, 2012
1 parent 842985a commit 2dc06f6
Show file tree
Hide file tree
Showing 82 changed files with 386 additions and 381 deletions.
3 changes: 1 addition & 2 deletions add_curve_aceous_galore.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,11 +762,10 @@ def main(context, self, align_matrix):
return

class Curveaceous_galore(bpy.types.Operator):
''''''
"""Add many types of curves"""
bl_idname = "mesh.curveaceous_galore"
bl_label = "Curveaceous galore"
bl_options = {'REGISTER', 'UNDO'}
bl_description = "adds many types of curves"

# align_matrix for the invoke
align_matrix = Matrix()
Expand Down
2 changes: 1 addition & 1 deletion add_curve_ivygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


def createIvyGeometry(IVY, growLeaves):
'''Create the curve geometry for IVY'''
"""Create the curve geometry for IVY"""
# Compute the local size and the gauss weight filter
#local_ivyBranchSize = IVY.ivyBranchSize # * radius * IVY.ivySize
gaussWeight = (1.0, 2.0, 4.0, 7.0, 9.0, 10.0, 9.0, 7.0, 4.0, 2.0, 1.0)
Expand Down
13 changes: 6 additions & 7 deletions add_curve_sapling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@


def getPresetpath():
'''Support user defined scripts directory
"""Support user defined scripts directory
Find the first ocurrence of add_curve_sapling/presets in possible script paths
and return it as preset path'''
and return it as preset path"""
presetpath = ""
for p in bpy.utils.script_paths():
presetpath = os.path.join(p, 'addons', 'add_curve_sapling', 'presets')
Expand All @@ -86,7 +86,7 @@ def getPresetpath():


class ExportData(bpy.types.Operator):
'''This operator handles writing presets to file'''
"""This operator handles writing presets to file"""
bl_idname = 'sapling.exportdata'
bl_label = 'Export Preset'

Expand Down Expand Up @@ -114,7 +114,7 @@ def execute(self, context):


class ImportData(bpy.types.Operator):
'''This operator handles importing existing presets'''
"""This operator handles importing existing presets"""
bl_idname = 'sapling.importdata'
bl_label = 'Import Preset'

Expand All @@ -135,9 +135,8 @@ def execute(self, context):


class PresetMenu(bpy.types.Menu):
'''Create the preset menu by finding all preset files
in the preset directory
'''
"""Create the preset menu by finding all preset files """ \
"""in the preset directory"""
bl_idname = "sapling.presetmenu"
bl_label = "Presets"

Expand Down
2 changes: 1 addition & 1 deletion add_curve_torus_knots.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_torus_knot(self, context):


class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
''''''
""""""
bl_idname = "curve.torus_knot_plus"
bl_label = "Torus Knot +"
bl_options = {'REGISTER', 'UNDO'}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_BoltFactory/Boltfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def align_matrix(context):


class add_mesh_bolt(bpy.types.Operator):
''''''
""""""
bl_idname = "mesh.bolt_add"
bl_label = "Add Bolt"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
4 changes: 2 additions & 2 deletions add_mesh_BoltFactory/createMesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ def unpack_face_list(list_of_tuples):

return l

'''
"""
Remove Doubles takes a list on Verts and a list of Faces and
removes the doubles, much like Blender does in edit mode.
It doesn’t have the range function but it will round the corrdinates
and remove verts that are very close togther. The function
is useful because you can perform a “Remove Doubles” with out
having to enter Edit Mode. Having to enter edit mode has the
disadvantage of not being able to interactively change the properties.
'''
"""


def RemoveDoubles(verts,faces,Decimal_Places = 4):
Expand Down
6 changes: 3 additions & 3 deletions add_mesh_ant_landscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"func=detail&aid=23130",
"category": "Add Mesh"}

'''
"""
Another Noise Tool: Landscape mesh generator
MESH OPTIONS:
Expand Down Expand Up @@ -66,7 +66,7 @@
Platlevel: Flattens terrain above plateau level.
Strata: Strata amount, number of strata/terrace layers.
Strata type: Strata types, Smooth, Sharp-sub, Sharp-add
'''
"""

# import modules
import bpy
Expand Down Expand Up @@ -430,7 +430,7 @@ def sphere_gen( sub_d, size_me, options ):
###------------------------------------------------------------
# Add landscape
class landscape_add(bpy.types.Operator):
'''Add a landscape mesh'''
"""Add a landscape mesh"""
bl_idname = "mesh.landscape_add"
bl_label = "Landscape"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
6 changes: 3 additions & 3 deletions add_mesh_extra_objects/add_mesh_3d_function_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def createFaces(vertIdx1, vertIdx2, closed=False, flipped=False):


class AddZFunctionSurface(bpy.types.Operator):
'''Add a surface defined defined by a function z=f(x,y)'''
"""Add a surface defined defined by a function z=f(x,y)"""
bl_idname = "mesh.primitive_z_function_surface"
bl_label = "Add Z Function Surface"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -398,8 +398,8 @@ def xyz_function_surface_faces(self, x_eq, y_eq, z_eq,
# v_min = -pi/4,
# v max = 5*pi/2
class AddXYZFunctionSurface(bpy.types.Operator):
'''Add a surface defined defined by 3 functions:''' \
+ ''' x=F1(u,v), y=F2(u,v) and z=F3(u,v)'''
"""Add a surface defined defined by 3 functions:""" \
""" x=F1(u,v), y=F2(u,v) and z=F3(u,v)"""
bl_idname = "mesh.primitive_xyz_function_surface"
bl_label = "Add X,Y,Z Function Surface"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
6 changes: 3 additions & 3 deletions add_mesh_extra_objects/add_mesh_extra_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def trapezohedron(s,r,h):
return verts,faces

class AddSqorus(bpy.types.Operator):
'''Add a sqorus mesh'''
"""Add a sqorus mesh"""
bl_idname = "mesh.primitive_sqorus_add"
bl_label = "Add Sqorus"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -386,7 +386,7 @@ def execute(self, context):


class AddWedge(bpy.types.Operator):
'''Add a wedge mesh'''
"""Add a wedge mesh"""
bl_idname = "mesh.primitive_wedge_add"
bl_label = "Add Wedge"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -420,7 +420,7 @@ def execute(self, context):


class AddStar(bpy.types.Operator):
'''Add a star mesh'''
"""Add a star mesh"""
bl_idname = "mesh.primitive_star_add"
bl_label = "Add Star"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
4 changes: 2 additions & 2 deletions add_mesh_extra_objects/add_mesh_gears.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def add_worm(teethNum, rowNum, radius, Ad, De, p_angle,


class AddGear(bpy.types.Operator):
'''Add a gear mesh'''
"""Add a gear mesh"""
bl_idname = "mesh.primitive_gear"
bl_label = "Add Gear"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -676,7 +676,7 @@ def execute(self, context):


class AddWormGear(bpy.types.Operator):
'''Add a worm gear mesh'''
"""Add a worm gear mesh"""
bl_idname = "mesh.primitive_worm_gear"
bl_label = "Add Worm Gear"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_gemstones.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def add_diamond(segments, girdle_radius, table_radius,


class AddDiamond(bpy.types.Operator):
'''Add a diamond mesh'''
"""Add a diamond mesh"""
bl_idname = "mesh.primitive_diamond_add"
bl_label = "Add Diamond"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_honeycomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def edge_max(diam):
return diam * sin(pi / 3)

class add_mesh_honeycomb(bpy.types.Operator):
'''Simple honeycomb mesh generator'''
"""Simple honeycomb mesh generator"""
bl_idname = 'mesh.honeycomb_add'
bl_label = 'Add HoneyComb'
bl_options = {'REGISTER', 'UNDO'}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import bpy, mathutils, io, operator, functools

class AddTeapot(bpy.types.Operator):
'''Add a teapot mesh.'''
"""Add a teapot mesh"""
bl_idname = "mesh.primitive_teapot_add"
bl_label = "Add Teapot"
bl_options = {"REGISTER", "UNDO"}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_torusknot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def make_knot(knotidx, ures):
return (verts, faces)

class AddTorusKnot(bpy.types.Operator):
'''Add a torus-knot mesh.'''
"""Add a torus-knot mesh"""
bl_idname = "mesh.primitive_torusknot_add"
bl_label = "Add Torus Knot"
bl_options = {"REGISTER", "UNDO"}
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_twisted_torus.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def add_twisted_torus(major_rad, minor_rad, major_seg, minor_seg, twists):


class AddTwistedTorus(bpy.types.Operator):
'''Add a torus mesh'''
"""Add a torus mesh"""
bl_idname = "mesh.primitive_twisted_torus_add"
bl_label = "Add Torus"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down
10 changes: 5 additions & 5 deletions add_mesh_pipe_joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def createFaces(vertIdx1, vertIdx2, closed=False, flipped=False):

class AddElbowJoint(bpy.types.Operator):
# Create the vertices and polygons for a simple elbow (bent pipe).
'''Add an Elbow pipe mesh'''
"""Add an Elbow pipe mesh"""
bl_idname = "mesh.primitive_elbow_joint_add"
bl_label = "Add Pipe Elbow"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -224,7 +224,7 @@ def execute(self, context):
class AddTeeJoint(bpy.types.Operator):
# Create the vertices and polygons for a simple tee (T) joint.
# The base arm of the T can be positioned in an angle if needed though.
'''Add a Tee-Joint mesh'''
"""Add a Tee-Joint mesh"""
bl_idname = "mesh.primitive_tee_joint_add"
bl_label = "Add Pipe Tee-Joint"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -401,7 +401,7 @@ def execute(self, context):


class AddWyeJoint(bpy.types.Operator):
'''Add a Wye-Joint mesh'''
"""Add a Wye-Joint mesh"""
bl_idname = "mesh.primitive_wye_joint_add"
bl_label = "Add Pipe Wye-Joint"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
Expand Down Expand Up @@ -595,7 +595,7 @@ def execute(self, context):


class AddCrossJoint(bpy.types.Operator):
'''Add a Cross-Joint mesh'''
"""Add a Cross-Joint mesh"""
# Create the vertices and polygons for a coss (+ or X) pipe joint.
bl_idname = "mesh.primitive_cross_joint_add"
bl_label = "Add Pipe Cross-Joint"
Expand Down Expand Up @@ -850,7 +850,7 @@ def execute(self, context):


class AddNJoint(bpy.types.Operator):
'''Add a N-Joint mesh'''
"""Add a N-Joint mesh"""
# Create the vertices and polygons for a regular n-joint.
bl_idname = "mesh.primitive_n_joint_add"
bl_label = "Add Pipe N-Joint"
Expand Down
2 changes: 1 addition & 1 deletion animation_add_corrective_shape_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def func_object_duplicate_flatten_modifiers(scene, obj):


class object_duplicate_flatten_modifiers(bpy.types.Operator):
'''Duplicates the selected object with modifiers applied'''
"""Duplicates the selected object with modifiers applied"""

bl_idname = "object.object_duplicate_flatten_modifiers"
bl_label = "Duplicate and apply all"
Expand Down
4 changes: 2 additions & 2 deletions animation_animall.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'func=detail&aid=24874',
'category': 'Animation'}

'''-------------------------------------------------------------------------
"""-------------------------------------------------------------------------
Thanks to Campbell Barton and Joshua Leung for hes API additions and fixes
Daniel 'ZanQdo' Salazar
Expand All @@ -40,7 +40,7 @@
for direct point animation since this new aproach is much stronger
and inline with the animation system
Rev 0.5 merged curve animation features from rotobezier and ported to new bmesh API
-------------------------------------------------------------------------'''
-------------------------------------------------------------------------"""

import bpy
from bpy.props import *
Expand Down
4 changes: 2 additions & 2 deletions curve_simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def fcurves_simplify(context, obj, options, fcurves):
#### ANIMATION CURVES OPERATOR ##################
#################################################
class GRAPH_OT_simplify(bpy.types.Operator):
''''''
""""""
bl_idname = "graph.simplify"
bl_label = "simplifiy f-curves"
bl_description = "simplify selected f-curves"
Expand Down Expand Up @@ -459,7 +459,7 @@ def execute(self, context):
##### Curves OPERATOR #####
###########################
class CURVE_OT_simplify(bpy.types.Operator):
''''''
""""""
bl_idname = "curve.simplify"
bl_label = "simplifiy curves"
bl_description = "simplify curves"
Expand Down
4 changes: 2 additions & 2 deletions io_anim_bvh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@


class ImportBVH(bpy.types.Operator, ImportHelper):
'''Load a BVH motion capture file'''
"""Load a BVH motion capture file"""
bl_idname = "import_anim.bvh"
bl_label = "Import BVH"
bl_options = {'REGISTER', 'UNDO'}
Expand Down Expand Up @@ -143,7 +143,7 @@ def execute(self, context):


class ExportBVH(bpy.types.Operator, ExportHelper):
'''Save a BVH motion capture file from an armature'''
"""Save a BVH motion capture file from an armature"""
bl_idname = "export_anim.bvh"
bl_label = "Export BVH"

Expand Down
2 changes: 1 addition & 1 deletion io_anim_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False)


class CameraExporter(bpy.types.Operator, ExportHelper):
'''Save a python script which re-creates cameras and markers elsewhere'''
"""Save a python script which re-creates cameras and markers elsewhere"""
bl_idname = "export_animation.cameras"
bl_label = "Export Camera & Markers"

Expand Down
8 changes: 4 additions & 4 deletions io_anim_nuke_chan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@


class ImportChan(Operator, ImportHelper):
'''Import animation from .chan file, exported from nuke or houdini. ''' \
'''The importer uses frame numbers from the file'''
"""Import animation from .chan file, exported from nuke or houdini """ \
"""(the importer uses frame numbers from the file)"""
bl_idname = "import_scene.import_chan"
bl_label = "Import chan file"

Expand Down Expand Up @@ -106,8 +106,8 @@ def execute(self, context):


class ExportChan(Operator, ExportHelper):
'''Export the animation to .chan file, readable by nuke and houdini. ''' \
'''The exporter uses frames from the frames range'''
"""Export the animation to .chan file, readable by nuke and houdini """ \
"""(the exporter uses frames from the frames range)"""
bl_idname = "export.export_chan"
bl_label = "Export chan file"

Expand Down
2 changes: 1 addition & 1 deletion io_convert_image_to_mesh_img/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@


class ImportHiRISEIMGDTM(bpy.types.Operator, ImportHelper):
'''Import a HiRISE DTM formatted as a PDS IMG file'''
"""Import a HiRISE DTM formatted as a PDS IMG file"""
bl_idname = "import_shape.img"
bl_label = "Import HiRISE DTM from PDS IMG"
bl_options = {'UNDO'}
Expand Down
Loading

0 comments on commit 2dc06f6

Please sign in to comment.