[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4598] contrib/py/scripts/addons: set native newlines.
Campbell Barton
ideasman42 at gmail.com
Tue Jun 25 15:34:22 CEST 2013
Revision: 4598
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4598
Author: campbellbarton
Date: 2013-06-25 13:34:22 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
set native newlines.
Modified Paths:
--------------
contrib/py/scripts/addons/add_scene_elements/__init__.py
contrib/py/scripts/addons/add_scene_elements/scene_camera.py
contrib/py/scripts/addons/add_scene_elements/scene_lighting.py
contrib/py/scripts/addons/add_scene_elements/scene_materials.py
contrib/py/scripts/addons/add_scene_elements/scene_objects.py
contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py
contrib/py/scripts/addons/io_directx_bel/bel/group.py
contrib/py/scripts/addons/mesh_border_deselect_outer.py
contrib/py/scripts/addons/mesh_easylattice.py
contrib/py/scripts/addons/uv_texture_atlas.py
Property Changed:
----------------
contrib/py/scripts/addons/add_scene_elements/__init__.py
contrib/py/scripts/addons/add_scene_elements/scene_camera.py
contrib/py/scripts/addons/add_scene_elements/scene_lighting.py
contrib/py/scripts/addons/add_scene_elements/scene_materials.py
contrib/py/scripts/addons/add_scene_elements/scene_objects.py
contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py
contrib/py/scripts/addons/cmu_mocap_browser/data.py
contrib/py/scripts/addons/cmu_mocap_browser/download.py
contrib/py/scripts/addons/cmu_mocap_browser/makehuman.py
contrib/py/scripts/addons/io_directx_bel/bel/group.py
contrib/py/scripts/addons/mesh_border_deselect_outer.py
contrib/py/scripts/addons/mesh_easylattice.py
contrib/py/scripts/addons/oscurart_worn_edges_map.py
contrib/py/scripts/addons/uv_texture_atlas.py
Modified: contrib/py/scripts/addons/add_scene_elements/__init__.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/__init__.py 2013-06-25 10:36:13 UTC (rev 4597)
+++ contrib/py/scripts/addons/add_scene_elements/__init__.py 2013-06-25 13:34:22 UTC (rev 4598)
@@ -1,102 +1,102 @@
-# ##### 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 #####
-# by meta-androcto, parts based on work by Erich Toven #
-
-bl_info = {
- "name": "Scene Elements",
- "author": "Meta Androcto, ",
- "version": (0, 2),
- "blender": (2, 64, 0),
- "location": "View3D > Add > Scene Elements",
- "description": "Add Scenes & Lights, Objects.",
- "warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6"\
- "/Py/Scripts",
- "tracker_url": "http://projects.blender.org/tracker/index.php?"\
- "func=detail&aid=32682",
- "category": "Object"}
-
-
-if "bpy" in locals():
- import imp
- imp.reload(scene_camera)
- imp.reload(scene_lighting)
- imp.reload(scene_materials)
- imp.reload(scene_objects)
- imp.reload(scene_objects_cycles)
-
-else:
- from . import scene_camera
- from . import scene_lighting
- from . import scene_materials
- from . import scene_objects
- from . import scene_objects_cycles
-
-import bpy
-
-class INFO_MT_mesh_objects_add(bpy.types.Menu):
- # Define the "mesh objects" menu
- bl_idname = "INFO_MT_scene_elements"
- bl_label = "Scene Elements"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("camera.add_scene",
- text="Scene_Camera")
- layout.operator("materials.add_scene",
- text="Scene_Objects_BI")
- layout.operator("plane.add_scene",
- text="Scene_Plane")
- layout.operator("objects_cycles.add_scene",
- text="Scene_Objects_Cycles")
-
-class INFO_MT_mesh_lamps_add(bpy.types.Menu):
- # Define the "mesh objects" menu
- bl_idname = "INFO_MT_scene_lamps"
- bl_label = "Lighting Elements"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("object.add_single_spot",
- text="Add Single Spot")
- layout.operator("object.add_basic_3point",
- text="Add 3 Point Spot Setup")
- layout.operator("object.add_basic_2point",
- text="Add 2 Point Setup")
- layout.operator("object.add_area_3point",
- text="Add 3 Point Setup")
-
-# Register all operators and panels
-# Define "Extras" menu
-def menu_func(self, context):
- self.layout.menu("INFO_MT_scene_elements", icon="PLUGIN")
- self.layout.menu("INFO_MT_scene_lamps", icon="PLUGIN")
-def register():
- bpy.utils.register_module(__name__)
- # Add "Extras" menu to the "Add Mesh" menu
- bpy.types.INFO_MT_add.append(menu_func)
-
-def unregister():
- bpy.utils.unregister_module(__name__)
- # Remove "Extras" menu from the "Add Mesh" menu.
- bpy.types.INFO_MT_add.remove(menu_func)
-
-if __name__ == "__main__":
- register()
+# ##### 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 #####
+# by meta-androcto, parts based on work by Erich Toven #
+
+bl_info = {
+ "name": "Scene Elements",
+ "author": "Meta Androcto, ",
+ "version": (0, 2),
+ "blender": (2, 64, 0),
+ "location": "View3D > Add > Scene Elements",
+ "description": "Add Scenes & Lights, Objects.",
+ "warning": "",
+ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6"\
+ "/Py/Scripts",
+ "tracker_url": "http://projects.blender.org/tracker/index.php?"\
+ "func=detail&aid=32682",
+ "category": "Object"}
+
+
+if "bpy" in locals():
+ import imp
+ imp.reload(scene_camera)
+ imp.reload(scene_lighting)
+ imp.reload(scene_materials)
+ imp.reload(scene_objects)
+ imp.reload(scene_objects_cycles)
+
+else:
+ from . import scene_camera
+ from . import scene_lighting
+ from . import scene_materials
+ from . import scene_objects
+ from . import scene_objects_cycles
+
+import bpy
+
+class INFO_MT_mesh_objects_add(bpy.types.Menu):
+ # Define the "mesh objects" menu
+ bl_idname = "INFO_MT_scene_elements"
+ bl_label = "Scene Elements"
+
+ def draw(self, context):
+ layout = self.layout
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ layout.operator("camera.add_scene",
+ text="Scene_Camera")
+ layout.operator("materials.add_scene",
+ text="Scene_Objects_BI")
+ layout.operator("plane.add_scene",
+ text="Scene_Plane")
+ layout.operator("objects_cycles.add_scene",
+ text="Scene_Objects_Cycles")
+
+class INFO_MT_mesh_lamps_add(bpy.types.Menu):
+ # Define the "mesh objects" menu
+ bl_idname = "INFO_MT_scene_lamps"
+ bl_label = "Lighting Elements"
+
+ def draw(self, context):
+ layout = self.layout
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ layout.operator("object.add_single_spot",
+ text="Add Single Spot")
+ layout.operator("object.add_basic_3point",
+ text="Add 3 Point Spot Setup")
+ layout.operator("object.add_basic_2point",
+ text="Add 2 Point Setup")
+ layout.operator("object.add_area_3point",
+ text="Add 3 Point Setup")
+
+# Register all operators and panels
+# Define "Extras" menu
+def menu_func(self, context):
+ self.layout.menu("INFO_MT_scene_elements", icon="PLUGIN")
+ self.layout.menu("INFO_MT_scene_lamps", icon="PLUGIN")
+def register():
+ bpy.utils.register_module(__name__)
+ # Add "Extras" menu to the "Add Mesh" menu
+ bpy.types.INFO_MT_add.append(menu_func)
+
+def unregister():
+ bpy.utils.unregister_module(__name__)
+ # Remove "Extras" menu from the "Add Mesh" menu.
+ bpy.types.INFO_MT_add.remove(menu_func)
+
+if __name__ == "__main__":
+ register()
Property changes on: contrib/py/scripts/addons/add_scene_elements/__init__.py
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: contrib/py/scripts/addons/add_scene_elements/scene_camera.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/scene_camera.py 2013-06-25 10:36:13 UTC (rev 4597)
+++ contrib/py/scripts/addons/add_scene_elements/scene_camera.py 2013-06-25 13:34:22 UTC (rev 4598)
@@ -1,89 +1,89 @@
-'''# ##### 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 #####
-
-bl_info = {
- "name": "Scene Lighting Presets",
- "author": "meta-androcto",
- "version": (0,1),
- "blender": (2, 63, 0),
- "location": "View3D > Tool Shelf > Scene Lighting Presets",
- "description": "Creates Scenes with Lighting presets",
- "warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/",
- "tracker_url": "",
- "category": "Object"}
-'''
-import bpy, mathutils, math
-from math import pi
-from bpy.props import *
-from mathutils import Vector
-
-class add_scene_camera(bpy.types.Operator):
- bl_idname = "camera.add_scene"
- bl_label = "Camera Only"
- bl_description = "Empty scene with Camera"
- bl_register = True
- bl_undo = True
-
- def execute(self, context):
- blend_data = context.blend_data
- ob = bpy.context.active_object
-
-# add new scene
- bpy.ops.scene.new(type="NEW")
- scene = bpy.context.scene
- scene.name = "scene_camera"
-# render settings
- render = scene.render
- render.resolution_x = 1920
- render.resolution_y = 1080
- render.resolution_percentage = 50
-# add new world
- world = bpy.data.worlds.new("Camera_World")
- scene.world = world
- world.use_sky_blend = True
- world.use_sky_paper = True
- world.horizon_color = (0.004393,0.02121,0.050)
- world.zenith_color = (0.03335,0.227,0.359)
- world.light_settings.use_ambient_occlusion = True
- world.light_settings.ao_factor = 0.25
-# add camera
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list