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

« back to all changes in this revision

Viewing changes to release/scripts/addons_contrib/io_export_dxf/__init__.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  ***** GPL LICENSE BLOCK *****
2
 
#
3
 
#  This program is free software: you can redistribute it and/or modify
4
 
#  it under the terms of the GNU General Public License as published by
5
 
#  the Free Software Foundation, either version 3 of the License, or
6
 
#  (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, see <http://www.gnu.org/licenses/>.
15
 
#  All rights reserved.
16
 
#  ***** GPL LICENSE BLOCK *****
17
 
 
18
 
bl_info = {
19
 
    "name": "Export Autocad DXF Format (.dxf)",
20
 
    "author": "Remigiusz Fiedler (AKA migius), Vaclav Klecanda",
21
 
    "version": (2, 1, 2),
22
 
    "blender": (2, 6, 0),
23
 
    "location": "File > Export > Autodesk (.dxf)",
24
 
    "description": "The script exports Blender geometry to DXF format r12 version.",
25
 
    "warning": "Only subset of DXF specification is supported, work in progress.",
26
 
    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/DXF_Exporter",
27
 
    "tracker_url": "https://projects.blender.org/tracker/index.php?func=detail&aid=28469",
28
 
    "category": "Import-Export"
29
 
}
30
 
 
31
 
import bpy
32
 
from .operator import DXFExporter
33
 
 
34
 
def menu_func(self, context):
35
 
    self.layout.operator(DXFExporter.bl_idname, text="Autocad (.dxf)")
36
 
 
37
 
def register():
38
 
    bpy.utils.register_module(__name__)
39
 
    bpy.types.INFO_MT_file_export.append(menu_func)
40
 
 
41
 
def unregister():
42
 
    bpy.utils.unregister_module(__name__)
43
 
    bpy.types.INFO_MT_file_export.remove(menu_func)
44
 
 
45
 
if __name__ == "__main__":
46
 
    register()