~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to release/scripts/bpymodules/ai2obj.py

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# 0.1.7 : 2005/06/25, two more closepath improvements 
20
20
#
21
21
# 0.1.8 : 2006/07/03, two more closepath improvements 
 
22
# 0.1.9 : 2007/05/06, modif on the method that gets the last object on 
 
23
                      the list data
22
24
 
23
25
"""
24
26
SHARP_IMPORT=0
173
175
       in_editmode = Blender.Window.EditMode()
174
176
       if in_editmode: Blender.Window.EditMode(0)
175
177
       Blender.Load(dir+nom+'OOO.obj', 1)
176
 
       BO=Blender.Object.Get()
177
 
       BO[-1].RotY=0.0
178
 
       BO[-1].RotX=1.57
179
 
       BO[-1].makeDisplayList() 
 
178
       BO=Blender.Scene.GetCurrent().objects.active
 
179
       BO.RotY=0.0
 
180
       BO.RotX=1.57
 
181
       BO.makeDisplayList() 
180
182
       Blender.Window.RedrawAll()
181
183
    else:
182
184
       print "Not yet implemented"