Commit Graph

5 Commits

Author SHA1 Message Date
Arystanbek Dyussenov
1557736756 OBJ exporter working (Python 3.0), but needs testing and fixing.
Current issues:
- NURBS - needs API additions
- "all scenes" export - cannot switch scene in bpy
- normal calculation, disabled
- duplis - need testing, only dupliverts tested
- matrix problem
- UI, 18 options currently don't fit into filesel panel, will do manual lay out once it's available
- probably others...

BPY:
- made operator "execute" method required to avoid crash
- added bpy.sys module which replicates old "sys" module

API:
- replaced create_*_mesh with a single create_mesh accepting type parameter
- added Mesh.create_copy to create a copy of a mesh with 0 users

Ran `dos2unix` on source/blender/python/SConscript
2009-06-28 13:29:03 +00:00
Brecht Van Lommel
dc7028cee4 Branch soc-2009-kazanbas
Merge with trunk revision 20991, and update scripts for the changes too.
Reload Scripts and Export OBJ still work for me.
2009-06-18 19:59:20 +00:00
Arystanbek Dyussenov
07e1b84ca8 Another fix in BPY_flag_from_seq: unrecognized flag is also an error.
Print operator return value for debugging.
2009-06-15 09:26:31 +00:00
Arystanbek Dyussenov
23eecb1e6e Import/export operator registration working. Written in python, it
traverses scripts in .blender/io extracting and registering Operator
subclasses, and binding to menu items under Scripts->Export in Scripts
Window.

release/io dir has to be copied to .blender manually for now.
2009-06-12 09:54:28 +00:00
Arystanbek Dyussenov
6563e9ff8a Started operator registration with python. This is a piece of cake!
Made space_script header area customizable with python - need Brecht to 
check this.
Added a base for operator registration: a menu in Scripts Window with 
two items "Reload Scripts" and "Export". The former will do guess what?
The latter will be populated with submenu items each corresponding to 
an exporter :)
2009-06-11 18:15:04 +00:00