didnt change all filename's to path's
authorCampbell Barton <ideasman42@gmail.com>
Tue, 15 Sep 2009 10:59:42 +0000 (10:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 15 Sep 2009 10:59:42 +0000 (10:59 +0000)
release/io/export_ply.py

index 7a3253b2d1699d87d9a4fbaf9065934e1c3546f9..491ffe6b9dfb59da6cba77e33fe6726454123409 100644 (file)
@@ -256,10 +256,10 @@ class EXPORT_OT_ply(bpy.types.Operator):
        def execute(self, context):
                # print("Selected: " + context.active_object.name)
 
-               if not self.filename:
+               if not self.path:
                        raise Exception("filename not set")
                        
-               write(self.filename, context.scene, context.active_object,\
+               write(self.path, context.scene, context.active_object,\
                        EXPORT_APPLY_MODIFIERS = self.use_modifiers,
                        EXPORT_NORMALS = self.use_normals,
                        EXPORT_UV = self.use_uvs,
@@ -277,6 +277,6 @@ class EXPORT_OT_ply(bpy.types.Operator):
 bpy.ops.add(EXPORT_OT_ply)
 
 if __name__ == "__main__":
-       bpy.ops.EXPORT_OT_ply(filename="/tmp/test.ply")
+       bpy.ops.EXPORT_OT_ply(path="/tmp/test.ply")