[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3171] trunk/py/scripts/addons/ io_import_images_as_planes.py: added per user request: receive transparent material option

Florian Meyer florianfelix at web.de
Sat Mar 24 11:22:46 CET 2012


Revision: 3171
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3171
Author:   testscreenings
Date:     2012-03-24 10:22:34 +0000 (Sat, 24 Mar 2012)
Log Message:
-----------
added per user request: receive transparent material option

Modified Paths:
--------------
    trunk/py/scripts/addons/io_import_images_as_planes.py

Modified: trunk/py/scripts/addons/io_import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/io_import_images_as_planes.py	2012-03-24 08:08:48 UTC (rev 3170)
+++ trunk/py/scripts/addons/io_import_images_as_planes.py	2012-03-24 10:22:34 UTC (rev 3171)
@@ -19,8 +19,8 @@
 bl_info = {
     "name": "Import Images as Planes",
     "author": "Florian Meyer (tstscr)",
-    "version": (1, 0),
-    "blender": (2, 6, 1),
+    "version": (1, 1),
+    "blender": (2, 6, 3),
     "location": "File > Import > Images as Planes",
     "description": "Imports images and creates planes with the appropriate "
                    "aspect ratio. The images are mapped to the planes.",
@@ -126,6 +126,7 @@
             material.use_transparency = self.use_transparency
             material.transparency_method = self.transparency_method
             material.use_shadeless = self.use_shadeless
+            material.use_transparent_shadows = self.use_transparent_shadows
             return material
 
     # if no material found: create one
@@ -145,6 +146,7 @@
     material.use_transparency = self.use_transparency
     material.transparency_method = self.transparency_method
     material.use_shadeless = self.use_shadeless
+    material.use_transparent_shadows = self.use_transparent_shadows
 
     return material
 
@@ -347,6 +349,11 @@
             'Raytrace',
             'Use raytracing for transparent refraction rendering.')),
             )
+    use_transparent_shadows = BoolProperty(
+            name="Receive Transparent",
+            description="Set material to receive transparent shadows",
+            default=False,
+            )
 
     # -------------
     # Image Options
@@ -380,6 +387,7 @@
         box.prop(self, "use_transparency")
         box.prop(self, "use_premultiply")
         box.prop(self, "transparency_method", expand=True)
+        box.prop(self, "use_transparent_shadows")
 
         box = layout.box()
         box.label("Plane dimensions:", icon='ARROW_LEFTRIGHT')



More information about the Bf-extensions-cvs mailing list