diff options
author | Florian Meyer <florianfelix@web.de> | 2010-05-13 19:11:06 +0400 |
---|---|---|
committer | Florian Meyer <florianfelix@web.de> | 2010-05-13 19:11:06 +0400 |
commit | d0cbe365ce0cf7b6043d6762d19f910d52e23c67 (patch) | |
tree | d70c21880936b5f566276844e49ef1075830844b | |
parent | b1961c2097c4857482ccd20a309053565b1e124f (diff) |
added a nicer draw() function
-rw-r--r-- | import_images_as_planes.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/import_images_as_planes.py b/import_images_as_planes.py index f05130d0..9adace6f 100644 --- a/import_images_as_planes.py +++ b/import_images_as_planes.py @@ -438,6 +438,25 @@ class ImportImagesAsPlanes(bpy.types.Operator): 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 @@ def unregister(): if __name__ == "__main__": - register() + register()
\ No newline at end of file |