Addons:
[blender-addons-contrib.git] / io_mesh_xyz / __init__.py
index e858d8f988bc5a9b9afb8bc9bd2c5b3bbedbef3b..ebe41baaa81159a35bb2236a7005f5da085e051d 100644 (file)
@@ -24,7 +24,8 @@ bl_info = {
     "blender": (2,6),
     "location": "File -> Import -> XYZ (.xyz), Panel: View 3D - Tools",
     "warning": "",
-    "wiki_url": "http://development.root-1.de/Atomic_Blender.php",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/"
+                "Import-Export/XYZ",
     "tracker_url": "http://projects.blender.org/tracker/"
                    "index.php?func=detail&aid=29646&group_id=153&atid=468",
     "category": "Import-Export"
@@ -44,6 +45,7 @@ from bpy.props import (StringProperty,
 
 from . import import_xyz
 ATOM_XYZ_ERROR = ""
+ATOM_XYZ_NOTE  = ""
 
 # -----------------------------------------------------------------------------
 #                                                                           GUI
@@ -268,6 +270,7 @@ class CLASS_atom_xyz_create_command(Operator):
 
     def execute(self, context):
         global ATOM_XYZ_ERROR
+        global ATOM_XYZ_NOTE
         import os
  
         scn = bpy.context.scene
@@ -331,6 +334,9 @@ class CLASS_atom_xyz_create_command(Operator):
             command_fp.write("#!/bin/sh\n")   
         command_fp.write("\n"+execute+"\n")     
         command_fp.close()
+        
+        ATOM_XYZ_NOTE = "The command has been stored (dir. of the .blend file)"
+        bpy.ops.atom_xyz.note_dialog('INVOKE_DEFAULT')
 
         return {'FINISHED'}
 
@@ -707,6 +713,21 @@ class CLASS_atom_xyz_error_dialog(bpy.types.Operator):
         return {'FINISHED'}
     def invoke(self, context, event):
         return context.window_manager.invoke_props_dialog(self)
+
+
+class CLASS_atom_xyz_note_dialog(bpy.types.Operator):
+    bl_idname = "atom_xyz.note_dialog"
+    bl_label = "Attention !"
+    
+    def draw(self, context):
+        layout = self.layout
+        row = layout.row()
+        row.label(text=ATOM_XYZ_NOTE) 
+    def execute(self, context):
+        print("Atomic Blender - Note: "+ATOM_XYZ_NOTE+"\n")
+        return {'FINISHED'}
+    def invoke(self, context, event):
+        return context.window_manager.invoke_props_dialog(self)
         
 
 # The entry into the menu 'file -> import'