[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [660] trunk/py/scripts/addons/ import_images_as_planes.py: added a nicer draw() function

Florian Meyer florianfelix at web.de
Thu May 13 17:11:07 CEST 2010


Revision: 660
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=660
Author:   testscreenings
Date:     2010-05-13 17:11:06 +0200 (Thu, 13 May 2010)

Log Message:
-----------
added a nicer draw() function

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

Modified: trunk/py/scripts/addons/import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/import_images_as_planes.py	2010-05-12 13:33:53 UTC (rev 659)
+++ trunk/py/scripts/addons/import_images_as_planes.py	2010-05-13 15:11:06 UTC (rev 660)
@@ -438,6 +438,25 @@
         min=1,
         default=500)
 
+    def draw(self, context):
+        props = self.properties
+        layout = self.layout
+        box = layout.box()
+        box.label('Filter:')
+        box.prop(props, 'fromDirectory')
+        box.prop(props, 'extension')
+        #col.label('Material mappings')
+        box = layout.box()
+        box.label('Material mappings:')
+        box.prop(props, 'shadeless')
+        box.prop(props, 'transp')
+        box.prop(props, 'premultiply')
+        box.prop(props, 'transp_method', expand=True)
+        box = layout.box()
+        box.label('Plane dimensions:')
+        box.prop(props, 'useDim')
+        box.prop(props, 'factor', expand=True)
+
     def execute(self, context):
         # File Path
         path = self.properties.path
@@ -502,4 +521,4 @@
 
 
 if __name__ == "__main__":
-    register()
+    register()
\ No newline at end of file




More information about the Bf-extensions-cvs mailing list