diff options
author | Alexander N <alpha-beta-release@gmx.net> | 2013-01-27 02:11:42 +0400 |
---|---|---|
committer | Alexander N <alpha-beta-release@gmx.net> | 2013-01-27 02:11:42 +0400 |
commit | d2c18e87de18837fb10ed47ce0ec6737633ee0be (patch) | |
tree | 3c1ac84c22290414a3d9d15a0254712aab1cc974 /io_scene_ms3d/__init__.py | |
parent | 9707a87e34661d10a3c9126ddd026b8641d15d45 (diff) |
moved MilkShape3D MS3D add-on from "addons_contrib" to "addons" (i got hopefully the permission by Campbell Barton)
Diffstat (limited to 'io_scene_ms3d/__init__.py')
-rw-r--r-- | io_scene_ms3d/__init__.py | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/io_scene_ms3d/__init__.py b/io_scene_ms3d/__init__.py new file mode 100644 index 00000000..2ae5199d --- /dev/null +++ b/io_scene_ms3d/__init__.py @@ -0,0 +1,107 @@ +# ##### BEGIN GPL LICENSE BLOCK ##### +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# ##### END GPL LICENSE BLOCK ##### + +# <pep8 compliant> + +bl_info = { + 'name': "MilkShape3D MS3D format (.ms3d)", + 'description': "Import / Export MilkShape3D MS3D files"\ + " (conform with MilkShape3D v1.8.4)", + 'author': "Alexander Nussbaumer", + 'version': (0, 93, 1), + 'blender': (2, 65, 3), + 'location': "File > Import & File > Export", + 'warning': "", + 'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\ + "Scripts/Import-Export/MilkShape3D_MS3D", + 'tracker_url': "http://projects.blender.org/tracker/index.php"\ + "?func=detail&aid=29404", + 'category': "Import-Export", + } + +############################################################################### +#234567890123456789012345678901234567890123456789012345678901234567890123456789 +#--------1---------2---------3---------4---------5---------6---------7--------- + + +# ##### BEGIN COPYRIGHT BLOCK ##### +# +# initial script copyright (c)2011,2012 Alexander Nussbaumer +# +# ##### END COPYRIGHT BLOCK ##### + + +# To support reload properly, try to access a package var, +# if it's there, reload everything +if 'bpy' in locals(): + import imp + if 'io_scene_ms3d.ms3d_ui' in locals(): + imp.reload(io_scene_ms3d.ms3d_ui) +else: + from io_scene_ms3d.ms3d_ui import ( + Ms3dImportOperator, + Ms3dExportOperator, + ) + + +#import blender stuff +from bpy.utils import ( + register_module, + unregister_module, + ) +from bpy.types import ( + INFO_MT_file_export, + INFO_MT_file_import, + ) + + +############################################################################### +# registration +def register(): + #################### + # F8 - key + import imp + imp.reload(ms3d_ui) + # F8 - key + #################### + + ms3d_ui.register() + + register_module(__name__) + INFO_MT_file_export.append(Ms3dExportOperator.menu_func) + INFO_MT_file_import.append(Ms3dImportOperator.menu_func) + + +def unregister(): + ms3d_ui.unregister() + + unregister_module(__name__) + INFO_MT_file_export.remove(Ms3dExportOperator.menu_func) + INFO_MT_file_import.remove(Ms3dImportOperator.menu_func) + + +############################################################################### +# global entry point +if (__name__ == "__main__"): + register() + + +############################################################################### +#234567890123456789012345678901234567890123456789012345678901234567890123456789 +#--------1---------2---------3---------4---------5---------6---------7--------- +# ##### END OF FILE ##### |