diff options
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/add_armature_human.py | 4 | ||||
-rw-r--r-- | release/scripts/op/add_mesh_torus.py | 7 | ||||
-rw-r--r-- | release/scripts/op/console_python.py | 2 | ||||
-rw-r--r-- | release/scripts/op/console_shell.py | 2 | ||||
-rw-r--r-- | release/scripts/op/image.py | 44 | ||||
-rw-r--r-- | release/scripts/op/mesh.py | 2 | ||||
-rw-r--r-- | release/scripts/op/object.py | 99 | ||||
-rw-r--r-- | release/scripts/op/object_align.py | 190 | ||||
-rw-r--r-- | release/scripts/op/object_randomize_transform.py | 10 | ||||
-rw-r--r-- | release/scripts/op/presets.py | 13 | ||||
-rw-r--r-- | release/scripts/op/screen_play_rendered_anim.py | 2 | ||||
-rw-r--r-- | release/scripts/op/sequencer.py | 2 | ||||
-rw-r--r-- | release/scripts/op/uv.py | 8 | ||||
-rw-r--r-- | release/scripts/op/uvcalc_follow_active.py | 8 | ||||
-rw-r--r-- | release/scripts/op/uvcalc_smart_project.py | 2 | ||||
-rw-r--r-- | release/scripts/op/vertexpaint_dirt.py | 4 | ||||
-rw-r--r-- | release/scripts/op/wm.py | 2 |
17 files changed, 364 insertions, 37 deletions
diff --git a/release/scripts/op/add_armature_human.py b/release/scripts/op/add_armature_human.py index 573c894350b..bc47fe41798 100644 --- a/release/scripts/op/add_armature_human.py +++ b/release/scripts/op/add_armature_human.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -583,7 +583,7 @@ def metarig_template(): class AddHuman(bpy.types.Operator): - '''Add an advanced human metarig base.''' + '''Add an advanced human metarig base''' bl_idname = "object.armature_human_advanced_add" bl_label = "Add Humanoid (advanced metarig)" bl_register = True diff --git a/release/scripts/op/add_mesh_torus.py b/release/scripts/op/add_mesh_torus.py index 59e40fbd628..66b4e9ddf13 100644 --- a/release/scripts/op/add_mesh_torus.py +++ b/release/scripts/op/add_mesh_torus.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -75,7 +75,7 @@ from bpy.props import * class AddTorus(bpy.types.Operator): - '''Add a torus mesh.''' + '''Add a torus mesh''' bl_idname = "mesh.primitive_torus_add" bl_label = "Add Torus" bl_register = True @@ -92,7 +92,7 @@ class AddTorus(bpy.types.Operator): default=48, min=3, max=256) minor_segments = IntProperty(name="Minor Segments", description="Number of segments for the minor ring of the torus", - default=16, min=3, max=256) + default=12, min=3, max=256) use_abso = BoolProperty(name="Use Int+Ext Controls", description="Use the Int / Ext controls for torus dimensions", default=False) @@ -121,6 +121,7 @@ class AddTorus(bpy.types.Operator): mesh.add_geometry(int(len(verts_loc) / 3), 0, int(len(faces) / 4)) mesh.verts.foreach_set("co", verts_loc) mesh.faces.foreach_set("verts_raw", faces) + mesh.faces.foreach_set("smooth", [False] * len(mesh.faces)) scene = context.scene diff --git a/release/scripts/op/console_python.py b/release/scripts/op/console_python.py index 383eb3c12d3..6fd3ba394ef 100644 --- a/release/scripts/op/console_python.py +++ b/release/scripts/op/console_python.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### diff --git a/release/scripts/op/console_shell.py b/release/scripts/op/console_shell.py index 4dc21114367..8a96dde3cee 100644 --- a/release/scripts/op/console_shell.py +++ b/release/scripts/op/console_shell.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### diff --git a/release/scripts/op/image.py b/release/scripts/op/image.py new file mode 100644 index 00000000000..37d2936f7af --- /dev/null +++ b/release/scripts/op/image.py @@ -0,0 +1,44 @@ +# ##### 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> + +import bpy + +class SaveDirty(bpy.types.Operator): + '''Select object matching a naming pattern''' + bl_idname = "image.save_dirty" + bl_label = "Save Dirty" + bl_register = True + bl_undo = True + + def execute(self, context): + unique_paths = set() + for image in bpy.data.images: + if image.dirty: + path = bpy.utils.expandpath(image.filename) + if "\\" not in path and "/" not in path: + self.report({'WARNING'}, "Invalid path: " + path) + elif path in unique_paths: + self.report({'WARNING'}, "Path used by more then one image: " + path) + else: + unique_paths.add(path) + image.save(path=path) + return {'FINISHED'} + +bpy.types.register(SaveDirty)
\ No newline at end of file diff --git a/release/scripts/op/mesh.py b/release/scripts/op/mesh.py index 78ac463248d..d8b28094e3a 100644 --- a/release/scripts/op/mesh.py +++ b/release/scripts/op/mesh.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py index 6fb15f1504c..4759d8e5082 100644 --- a/release/scripts/op/object.py +++ b/release/scripts/op/object.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -23,7 +23,7 @@ from bpy.props import * class SelectPattern(bpy.types.Operator): - '''Select object matching a naming pattern.''' + '''Select object matching a naming pattern''' bl_idname = "object.select_pattern" bl_label = "Select Pattern" bl_register = True @@ -75,6 +75,27 @@ class SelectPattern(bpy.types.Operator): row.prop(props, "extend") +class SelectCamera(bpy.types.Operator): + '''Select object matching a naming pattern''' + bl_idname = "object.select_camera" + bl_label = "Select Camera" + bl_register = True + bl_undo = True + + def poll(self, context): + return context.scene.camera is not None + + def execute(self, context): + scene = context.scene + camera = scene.camera + if camera.name not in scene.objects: + self.report({'WARNING'}, "Active camera is not in this scene") + + context.scene.objects.active = camera + camera.selected = True + return {'FINISHED'} + + class SubdivisionSet(bpy.types.Operator): '''Sets a Subdivision Surface Level (1-5)''' @@ -140,7 +161,7 @@ class SubdivisionSet(bpy.types.Operator): class ShapeTransfer(bpy.types.Operator): - '''Copy another selected objects active shape to this one by applying the relative offsets.''' + '''Copy another selected objects active shape to this one by applying the relative offsets''' bl_idname = "object.shape_key_transfer" bl_label = "Transfer Shape Key" @@ -379,11 +400,79 @@ class JoinUVs(bpy.types.Operator): self._main(context) return {'FINISHED'} -if __name__ == "__main__": - bpy.ops.uv.simple_operator() +class MakeDupliFace(bpy.types.Operator): + '''Make linked objects into dupli-faces''' + bl_idname = "object.make_dupli_face" + bl_label = "Make DupliFace" + + def poll(self, context): + obj = context.active_object + return (obj and obj.type == 'MESH') + + def _main(self, context): + from Mathutils import Vector + from math import sqrt + + SCALE_FAC = 0.01 + offset = 0.5 * SCALE_FAC + base_tri = Vector(-offset, -offset, 0.0), Vector(offset, -offset, 0.0), Vector(offset, offset, 0.0), Vector(-offset, offset, 0.0) + + def matrix_to_quat(matrix): + # scale = matrix.median_scale + trans = matrix.translation_part() + rot = matrix.rotation_part() # also contains scale + + return [(rot * b) + trans for b in base_tri] + scene = bpy.context.scene + linked = {} + for obj in bpy.context.selected_objects: + data = obj.data + if data: + linked.setdefault(data, []).append(obj) + + for data, objects in linked.items(): + face_verts = [axis for obj in objects for v in matrix_to_quat(obj.matrix) for axis in v] + faces = list(range(int(len(face_verts) / 3))) + + mesh = bpy.data.meshes.new(data.name + "_dupli") + + mesh.add_geometry(int(len(face_verts) / 3), 0, int(len(face_verts) / (4 * 3))) + mesh.verts.foreach_set("co", face_verts) + mesh.faces.foreach_set("verts_raw", faces) + mesh.update() # generates edge data + + # pick an object to use + obj = objects[0] + + ob_new = bpy.data.objects.new(mesh.name, 'MESH') + ob_new.data = mesh + base = scene.objects.link(ob_new) + base.layers[:] = obj.layers + + ob_inst = bpy.data.objects.new(data.name, obj.type) + ob_inst.data = data + base = scene.objects.link(ob_inst) + base.layers[:] = obj.layers + + for obj in objects: + scene.objects.unlink(obj) + + ob_new.dupli_type = 'FACES' + ob_inst.parent = ob_new + ob_new.use_dupli_faces_scale = True + ob_new.dupli_faces_scale = 1.0 / SCALE_FAC + + def execute(self, context): + self._main(context) + return {'FINISHED'} + +# if __name__ == "__main__": +# bpy.ops.uv.simple_operator() bpy.types.register(SelectPattern) +bpy.types.register(SelectCamera) bpy.types.register(SubdivisionSet) bpy.types.register(ShapeTransfer) bpy.types.register(JoinUVs) +bpy.types.register(MakeDupliFace) diff --git a/release/scripts/op/object_align.py b/release/scripts/op/object_align.py new file mode 100644 index 00000000000..a40e3684b21 --- /dev/null +++ b/release/scripts/op/object_align.py @@ -0,0 +1,190 @@ +# ##### 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> + +import bpy +from Mathutils import Vector + + +def align_objects(align_x, align_y, align_z, relative_to): + + cursor = bpy.context.scene.cursor_location + + # Selection BB + + Left_Up_Front_SEL = [[],[],[]] + Right_Down_Back_SEL = [[],[],[]] + + flag_first = True + + for obj in bpy.context.selected_objects: + + bb_world = [obj.matrix * Vector(v[:]) for v in obj.bound_box] + + Left_Up_Front = bb_world[1] + Right_Down_Back = bb_world[7] + + + if flag_first: + flag_first = False + + Left_Up_Front_SEL[0] = Left_Up_Front[0] + Left_Up_Front_SEL[1] = Left_Up_Front[1] + Left_Up_Front_SEL[2] = Left_Up_Front[2] + + Right_Down_Back_SEL[0] = Right_Down_Back[0] + Right_Down_Back_SEL[1] = Right_Down_Back[1] + Right_Down_Back_SEL[2] = Right_Down_Back[2] + + else: + # X axis + if Left_Up_Front[0] < Left_Up_Front_SEL[0]: + Left_Up_Front_SEL[0] = Left_Up_Front[0] + # Y axis + if Left_Up_Front[1] < Left_Up_Front_SEL[1]: + Left_Up_Front_SEL[1] = Left_Up_Front[1] + # Z axis + if Left_Up_Front[2] > Left_Up_Front_SEL[2]: + Left_Up_Front_SEL[2] = Left_Up_Front[2] + + # X axis + if Right_Down_Back[0] > Right_Down_Back_SEL[0]: + Right_Down_Back_SEL[0] = Right_Down_Back[0] + # Y axis + if Right_Down_Back[1] > Right_Down_Back_SEL[1]: + Right_Down_Back_SEL[1] = Right_Down_Back[1] + # Z axis + if Right_Down_Back[2] < Right_Down_Back_SEL[2]: + Right_Down_Back_SEL[2] = Right_Down_Back[2] + + center_sel_x = ( Left_Up_Front_SEL[0] + Right_Down_Back_SEL[0] ) / 2 + center_sel_y = ( Left_Up_Front_SEL[1] + Right_Down_Back_SEL[1] ) / 2 + center_sel_z = ( Left_Up_Front_SEL[2] + Right_Down_Back_SEL[2] ) / 2 + + # End Selection BB + + for obj in bpy.context.selected_objects: + + loc_world = obj.location + bb_world = [obj.matrix * Vector(v[:]) for v in obj.bound_box] + + Left_Up_Front = bb_world[1] + Right_Down_Back = bb_world[7] + + center_x = ( Left_Up_Front[0] + Right_Down_Back[0] ) / 2 + center_y = ( Left_Up_Front[1] + Right_Down_Back[1] ) / 2 + center_z = ( Left_Up_Front[2] + Right_Down_Back[2] ) / 2 + + obj_loc = obj.location + + if align_x: + + obj_x = obj_loc[0] - center_x + + if relative_to == 'OPT_1': + loc_x = obj_x + + elif relative_to == 'OPT_2': + loc_x = obj_x + cursor[0] + + elif relative_to == 'OPT_3': + loc_x = obj_x + center_sel_x + + obj.location[0] = loc_x + + + if align_y: + + obj_y = obj_loc[1] - center_y + + if relative_to == 'OPT_1': + loc_y = obj_y + + elif relative_to == 'OPT_2': + loc_y = obj_y + cursor[1] + + elif relative_to == 'OPT_3': + loc_y = obj_y + center_sel_y + + obj.location[1] = loc_y + + + if align_z: + + obj_z = obj_loc[2] - center_z + + if relative_to == 'OPT_1': + loc_z = obj_z + + elif relative_to == 'OPT_2': + loc_z = obj_z + cursor[2] + + elif relative_to == 'OPT_3': + loc_z = obj_z + center_sel_z + + obj.location[2] = loc_z + + +from bpy.props import * + +class AlignObjects(bpy.types.Operator): + '''Align Objects''' + bl_idname = "object.align" + bl_label = "Align Objets" + bl_register = True + bl_undo = True + + relative_to = bpy.props.EnumProperty(items=( + ('OPT_1', "Scene Origin", ""), + ('OPT_2', "3D Cursor", ""), + ('OPT_3', "Selection", "") + ), + name="Relative To:", + description="", + default='OPT_1') + + align_x = BoolProperty(name="Align X", + description="Align in the X axis", default=False) + + align_y = BoolProperty(name="Align Y", + description="Align in the Y axis", default=False) + + align_z = BoolProperty(name="Align Z", + description="Align in the Z axis", default=False) + + def execute(self, context): + + relative_to = self.properties.relative_to + align_x = self.properties.align_x + align_y = self.properties.align_y + align_z = self.properties.align_z + + align_objects(align_x, align_y, align_z, relative_to) + + return {'FINISHED'} + + +bpy.types.register(AlignObjects) + +def menu_func(self, context): + if context.mode == 'OBJECT': + self.layout.operator(AlignObjects.bl_idname, + text="Align Objects") + +bpy.types.VIEW3D_MT_transform.append(menu_func) diff --git a/release/scripts/op/object_randomize_transform.py b/release/scripts/op/object_randomize_transform.py index 4db350b519e..a33b2701b63 100644 --- a/release/scripts/op/object_randomize_transform.py +++ b/release/scripts/op/object_randomize_transform.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -80,9 +80,9 @@ from bpy.props import * class RandomizeLocRotSize(bpy.types.Operator): - '''Randomize objects loc/rot/scale.''' - bl_idname = "object.randomize_locrotsize" - bl_label = "Randomize Loc Rot Size" + '''Randomize objects loc/rot/scale''' + bl_idname = "object.randomize_transform" + bl_label = "Randomize Transform" bl_register = True bl_undo = True @@ -141,6 +141,6 @@ bpy.types.register(RandomizeLocRotSize) def menu_func(self, context): if context.mode == 'OBJECT': self.layout.operator(RandomizeLocRotSize.bl_idname, - text="Randomize Loc Rot Size") + text="Randomize Transform") bpy.types.VIEW3D_MT_transform.append(menu_func) diff --git a/release/scripts/op/presets.py b/release/scripts/op/presets.py index f562f565755..d1e059622fc 100644 --- a/release/scripts/op/presets.py +++ b/release/scripts/op/presets.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -69,7 +69,7 @@ class AddPresetBase(bpy.types.Operator): class AddPresetRender(AddPresetBase): - '''Add a Render Preset.''' + '''Add a Render Preset''' bl_idname = "render.preset_add" bl_label = "Add Render Preset" name = AddPresetBase.name @@ -82,13 +82,16 @@ class AddPresetRender(AddPresetBase): "bpy.context.scene.render_data.fps", "bpy.context.scene.render_data.fps_base", "bpy.context.scene.render_data.resolution_percentage", + "bpy.context.scene.render_data.fields", + "bpy.context.scene.render_data.field_order", + "bpy.context.scene.render_data.fields_still", ] preset_subdir = "render" class AddPresetSSS(AddPresetBase): - '''Add a Subsurface Scattering Preset.''' + '''Add a Subsurface Scattering Preset''' bl_idname = "material.sss_preset_add" bl_label = "Add SSS Preset" name = AddPresetBase.name @@ -113,7 +116,7 @@ class AddPresetSSS(AddPresetBase): class AddPresetCloth(AddPresetBase): - '''Add a Cloth Preset.''' + '''Add a Cloth Preset''' bl_idname = "cloth.preset_add" bl_label = "Add Cloth Preset" name = AddPresetBase.name @@ -131,7 +134,7 @@ class AddPresetCloth(AddPresetBase): class AddPresetSunSky(AddPresetBase): - '''Add a Sky & Atmosphere Preset.''' + '''Add a Sky & Atmosphere Preset''' bl_idname = "lamp.sunsky_preset_add" bl_label = "Add Sunsky Preset" name = AddPresetBase.name diff --git a/release/scripts/op/screen_play_rendered_anim.py b/release/scripts/op/screen_play_rendered_anim.py index c76afef06c3..18843e41028 100644 --- a/release/scripts/op/screen_play_rendered_anim.py +++ b/release/scripts/op/screen_play_rendered_anim.py @@ -14,7 +14,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ***** END GPL LICENCE BLOCK ***** diff --git a/release/scripts/op/sequencer.py b/release/scripts/op/sequencer.py index e78084b3a7b..9d3ee4a7fd7 100644 --- a/release/scripts/op/sequencer.py +++ b/release/scripts/op/sequencer.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py index 8e8fce6d4f8..1c425f6c451 100644 --- a/release/scripts/op/uv.py +++ b/release/scripts/op/uv.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -23,7 +23,7 @@ from bpy.props import * class ExportUVLayout(bpy.types.Operator): - '''Export the Mesh as SVG.''' + '''Export the Mesh as SVG''' bl_idname = "uv.export_layout" bl_label = "Export UV Layout" @@ -34,8 +34,8 @@ class ExportUVLayout(bpy.types.Operator): check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'}) export_all = BoolProperty(name="All UV's", description="Export all UVs in this mesh (not just the visible ones)", default=False) mode = EnumProperty(items=( - ('SVG', "Scalable Vector Graphic (.svg)", "Export the UV layout to a vector SVG file."), - ('EPS', "Encapsulate PostScript (.eps)", "Export the UV layout to a vector EPS file.")), + ('SVG', "Scalable Vector Graphic (.svg)", "Export the UV layout to a vector SVG file"), + ('EPS', "Encapsulate PostScript (.eps)", "Export the UV layout to a vector EPS file")), name="Format", description="File format to export the UV layout to", default='SVG') diff --git a/release/scripts/op/uvcalc_follow_active.py b/release/scripts/op/uvcalc_follow_active.py index ec68b00caed..baca4060e0a 100644 --- a/release/scripts/op/uvcalc_follow_active.py +++ b/release/scripts/op/uvcalc_follow_active.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### @@ -47,7 +47,7 @@ def extend(obj, operator, EXTEND_MODE): ''' Takes 2 faces, Projects its extends its UV coords onto the face next to it. - Both faces must share an edge. + Both faces must share an edge ''' def face_edge_vs(vi): @@ -239,14 +239,14 @@ def main(context, operator): class FollowActiveQuads(bpy.types.Operator): - '''Follow UVs from active quads along continuous face loops.''' + '''Follow UVs from active quads along continuous face loops''' bl_idname = "uv.follow_active_quads" bl_label = "Follow Active Quads" bl_register = True bl_undo = True - mode = bpy.props.EnumProperty(items=(("EVEN", "Even", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop.")), + mode = bpy.props.EnumProperty(items=(("EVEN", "Even", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop")), name="Edge Length Mode", description="Method to space UV edge loops", default="LENGTH") diff --git a/release/scripts/op/uvcalc_smart_project.py b/release/scripts/op/uvcalc_smart_project.py index 5efbbf25c32..1256358a32b 100644 --- a/release/scripts/op/uvcalc_smart_project.py +++ b/release/scripts/op/uvcalc_smart_project.py @@ -15,7 +15,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ***** END GPL LICENCE BLOCK ***** # -------------------------------------------------------------------------- diff --git a/release/scripts/op/vertexpaint_dirt.py b/release/scripts/op/vertexpaint_dirt.py index 5731d08a438..030fed21ac2 100644 --- a/release/scripts/op/vertexpaint_dirt.py +++ b/release/scripts/op/vertexpaint_dirt.py @@ -14,7 +14,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ***** END GPL LICENCE BLOCK ***** # -------------------------------------------------------------------------- @@ -161,7 +161,7 @@ class VertexPaintDirt(bpy.types.Operator): obj = context.object if not obj or obj.type != 'MESH': - print('Error, no active mesh object, aborting.') + print('Error, no active mesh object, aborting') return('CANCELLED',) mesh = obj.data diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py index 05df1cd4327..077d633757a 100644 --- a/release/scripts/op/wm.py +++ b/release/scripts/op/wm.py @@ -12,7 +12,7 @@ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### |