Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.51
Category: Import Export
Python: 3.1
Script name: export_off.py, import_scene_off.py
Wiki page: -
Dependencies: open, str
Author(s): Leif Andersen
Status: Closed
Features:
Imports all of the vertexes and faces from an OFF file into a new mesh and object. Note that it adds it as a series of triangular faces.
Setup:
Every external module used should be included within standard python 3.1, these include: open, str. The script is designed to be placed in the scripts/io/ folder in the blender directory. Alternatively, it will work if the user just runes the script. Note that running the script does not begin the export, it will add an option in the export menu to export to OFF. If the script is already in scripts/io, it should be there on startup.
Manuel:
Once a scene with meshes has be created, and the script has been loaded (see setup), all the user needs to do is go into File->Import->Object File Format (OFF), once there, he will be offered a file browser, where he will choose the name and directory of the file. Then, blender will create a mesh, and object, and add all of the vertexes and faces to it.
Known Bugs:
1. Always adds triangular faces. To be deprecated when blender adds support for n-gons.
2. While it adds the mesh and object to the list of meshes and objects, it doesn't actually update the 3d view to reflect the changes.