~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to release/scripts/addons/io_scene_ms3d/__init__.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ##### BEGIN GPL LICENSE BLOCK #####
 
2
#
 
3
#  This program is free software; you can redistribute it and/or
 
4
#  modify it under the terms of the GNU General Public License
 
5
#  as published by the Free Software Foundation; either version 2
 
6
#  of the License, or (at your option) any later version.
 
7
#
 
8
#  This program is distributed in the hope that it will be useful,
 
9
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
#  GNU General Public License for more details.
 
12
#
 
13
#  You should have received a copy of the GNU General Public License
 
14
#  along with this program; if not, write to the Free Software Foundation,
 
15
#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16
#
 
17
# ##### END GPL LICENSE BLOCK #####
 
18
 
 
19
# <pep8 compliant>
 
20
 
 
21
bl_info = {
 
22
    'name': "MilkShape3D MS3D format (.ms3d)",
 
23
    'description': "Import / Export MilkShape3D MS3D files"\
 
24
            " (conform with MilkShape3D v1.8.4)",
 
25
    'author': "Alexander Nussbaumer",
 
26
    'version': (0, 96, 0),
 
27
    'blender': (2, 66, 0),
 
28
    'location': "File > Import & File > Export",
 
29
    'warning': "",
 
30
    'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
 
31
            "Scripts/Import-Export/MilkShape3D_MS3D",
 
32
    'tracker_url': "http://projects.blender.org/tracker/index.php"\
 
33
            "?func=detail&aid=34084",
 
34
    'category': "Import-Export",
 
35
    }
 
36
 
 
37
###############################################################################
 
38
#234567890123456789012345678901234567890123456789012345678901234567890123456789
 
39
#--------1---------2---------3---------4---------5---------6---------7---------
 
40
 
 
41
 
 
42
# ##### BEGIN COPYRIGHT BLOCK #####
 
43
#
 
44
# initial script copyright (c)2011-2013 Alexander Nussbaumer
 
45
#
 
46
# ##### END COPYRIGHT BLOCK #####
 
47
 
 
48
 
 
49
# To support reload properly, try to access a package var,
 
50
# if it's there, reload everything
 
51
if 'bpy' in locals():
 
52
    import imp
 
53
    if 'io_scene_ms3d.ms3d_ui' in locals():
 
54
        imp.reload(io_scene_ms3d.ms3d_ui)
 
55
else:
 
56
    from io_scene_ms3d.ms3d_ui import (
 
57
            Ms3dImportOperator,
 
58
            Ms3dExportOperator,
 
59
            )
 
60
 
 
61
 
 
62
#import blender stuff
 
63
from bpy.utils import (
 
64
        register_module,
 
65
        unregister_module,
 
66
        )
 
67
from bpy.types import (
 
68
        INFO_MT_file_export,
 
69
        INFO_MT_file_import,
 
70
        )
 
71
 
 
72
 
 
73
###############################################################################
 
74
# registration
 
75
def register():
 
76
    ####################
 
77
    # F8 - key
 
78
    import imp
 
79
    imp.reload(ms3d_ui)
 
80
    # F8 - key
 
81
    ####################
 
82
 
 
83
    ms3d_ui.register()
 
84
 
 
85
    register_module(__name__)
 
86
    INFO_MT_file_export.append(Ms3dExportOperator.menu_func)
 
87
    INFO_MT_file_import.append(Ms3dImportOperator.menu_func)
 
88
 
 
89
 
 
90
def unregister():
 
91
    ms3d_ui.unregister()
 
92
 
 
93
    unregister_module(__name__)
 
94
    INFO_MT_file_export.remove(Ms3dExportOperator.menu_func)
 
95
    INFO_MT_file_import.remove(Ms3dImportOperator.menu_func)
 
96
 
 
97
 
 
98
###############################################################################
 
99
# global entry point
 
100
if (__name__ == "__main__"):
 
101
    register()
 
102
 
 
103
 
 
104
###############################################################################
 
105
#234567890123456789012345678901234567890123456789012345678901234567890123456789
 
106
#--------1---------2---------3---------4---------5---------6---------7---------
 
107
# ##### END OF FILE #####