[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3796] contrib/py/scripts/addons/ add_scene_elements: SVN maintenance.

gsr b3d gsr.b3d at infernal-iceberg.com
Sat Sep 29 03:06:32 CEST 2012


Revision: 3796
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3796
Author:   gsrb3d
Date:     2012-09-29 01:06:29 +0000 (Sat, 29 Sep 2012)
Log Message:
-----------
SVN maintenance.

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_materials.py
    contrib/py/scripts/addons/add_scene_elements/scene_objects.py
    contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.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

Modified: contrib/py/scripts/addons/add_scene_elements/__init__.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/__init__.py	2012-09-28 08:41:17 UTC (rev 3795)
+++ contrib/py/scripts/addons/add_scene_elements/__init__.py	2012-09-29 01:06:29 UTC (rev 3796)
@@ -1,87 +1,87 @@
-# ##### 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, 1),
-    "blender": (2, 6, 3),
-    "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.menu("INFO_MT_lighting.add",
-            text="Scene_Lighting")
-        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")
-
-# Register all operators and panels
-# Define "Extras" menu
-def menu_func(self, context):
-    self.layout.menu("INFO_MT_scene_elements", 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, 1),
+    "blender": (2, 6, 3),
+    "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.menu("INFO_MT_lighting.add",
+            text="Scene_Lighting")
+        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")
+
+# Register all operators and panels
+# Define "Extras" menu
+def menu_func(self, context):
+    self.layout.menu("INFO_MT_scene_elements", 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	2012-09-28 08:41:17 UTC (rev 3795)
+++ contrib/py/scripts/addons/add_scene_elements/scene_camera.py	2012-09-29 01:06:29 UTC (rev 3796)
@@ -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, 6, 3),
-    "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
-        bpy.ops.object.camera_add(location = (7.48113,-6.50764,5.34367), rotation = (1.109319,0.010817,0.814928),)
-        cam = bpy.context.active_object.data
-        cam.lens = 35
-        cam.draw_size = 0.1
-
-        return {"FINISHED"}
-
-#### REGISTER ####
-def add_object_button(self, context):
-    self.layout.menu("INFO_MT_camera.add_scene", icon="PLUGIN")
-
-def register():
-    bpy.utils.register_module(__name__)
-
-    bpy.types.INFO_MT_add.append(add_object_button)
-
-def unregister():
-    bpy.utils.unregister_module(__name__)
-
-    bpy.types.INFO_MT_add.remove(add_object_button)
-
-
-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

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list