[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3083] contrib/py/scripts/addons/ io_mesh_xyz/__init__.py:
Clemens Barth
barth at root-1.de
Sat Mar 10 21:52:03 CET 2012
Revision: 3083
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3083
Author: blendphys
Date: 2012-03-10 20:51:55 +0000 (Sat, 10 Mar 2012)
Log Message:
-----------
Some cosmetics ....
Blendphys
Modified Paths:
--------------
contrib/py/scripts/addons/io_mesh_xyz/__init__.py
Modified: contrib/py/scripts/addons/io_mesh_xyz/__init__.py
===================================================================
--- contrib/py/scripts/addons/io_mesh_xyz/__init__.py 2012-03-10 18:42:29 UTC (rev 3082)
+++ contrib/py/scripts/addons/io_mesh_xyz/__init__.py 2012-03-10 20:51:55 UTC (rev 3083)
@@ -26,7 +26,7 @@
"location": "File -> Import -> XYZ (.xyz), Panel: View 3D - Tools",
"warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/"
- "Import-Export/XYZ#Loading_XYZ_filesp",
+ "Import-Export/XYZ",
"tracker_url": "http://projects.blender.org/tracker/"
"index.php?func=detail&aid=29646&group_id=153&atid=468",
"category": "Import-Export"
@@ -46,6 +46,7 @@
from . import import_xyz
ATOM_XYZ_ERROR = ""
+ATOM_XYZ_NOTE = ""
# -----------------------------------------------------------------------------
# GUI
@@ -270,6 +271,7 @@
def execute(self, context):
global ATOM_XYZ_ERROR
+ global ATOM_XYZ_NOTE
import os
scn = bpy.context.scene
@@ -333,6 +335,9 @@
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'}
@@ -709,6 +714,21 @@
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'
More information about the Bf-extensions-cvs
mailing list