Skip to content
Snippets Groups Projects
Commit d0cbe365 authored by Florian Meyer's avatar Florian Meyer
Browse files

added a nicer draw() function

parent b1961c20
No related branches found
No related tags found
No related merge requests found
...@@ -438,6 +438,25 @@ class ImportImagesAsPlanes(bpy.types.Operator): ...@@ -438,6 +438,25 @@ class ImportImagesAsPlanes(bpy.types.Operator):
min=1, min=1,
default=500) 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): def execute(self, context):
# File Path # File Path
path = self.properties.path path = self.properties.path
...@@ -502,4 +521,4 @@ def unregister(): ...@@ -502,4 +521,4 @@ def unregister():
if __name__ == "__main__": if __name__ == "__main__":
register() register()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment