~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to release/scripts/3ds_export.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
Tooltip: 'Export to 3DS file format (.3ds).'
8
8
"""
9
9
 
10
 
__author__ = ["Campbell Barton", "Bob Holcomb", "Richard L�rk�ng", "Damien McGinnes", "Mark Stijnman"]
 
10
__author__ = ["Campbell Barton", "Bob Holcomb", "Richard Lärkäng", "Damien McGinnes", "Mark Stijnman"]
11
11
__url__ = ("blenderartists.org", "www.blender.org", "www.gametutorials.com", "lib3ds.sourceforge.net/")
12
12
__version__ = "0.90a"
13
13
__bpydoc__ = """\
50
50
import bpy
51
51
from BPyMesh import getMeshFromObject
52
52
from BPyObject import getDerivedObjects
53
 
import struct
 
53
try: 
 
54
    import struct
 
55
except: 
 
56
    struct = None
54
57
 
55
58
# So 3ds max can open files, limit names to 12 in length
56
59
# this is verry annoying for filenames!
1009
1012
 
1010
1013
 
1011
1014
if __name__=='__main__':
1012
 
        Blender.Window.FileSelector(save_3ds, "Export 3DS", Blender.sys.makename(ext='.3ds'))
 
1015
    if struct:
 
1016
        Blender.Window.FileSelector(save_3ds, "Export 3DS", Blender.sys.makename(ext='.3ds'))
 
1017
    else:
 
1018
        Blender.Draw.PupMenu("Error%t|This script requires a full python installation")
1013
1019
# save_3ds('/test_b.3ds')