Permalink
Browse files

started to refactor dot_scene export code

new test suite started
  • Loading branch information...
Richard Plangger
Richard Plangger committed Aug 24, 2014
1 parent d526a49 commit b593e26079ec45c8b72bc1f40c5f7fc126fd3ce5
View
@@ -21,3 +21,4 @@ syntax: glob
__pycache__
_ogre_debug.txt
test/blender/
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,34 @@
import bpy
import sys
import os
from os.path import join, split
#sys.path.append(split(os.getcwd())[0])
#print(sys.path)
def export(object_names):
for name in object_names:
index = bpy.data.objects.find(name)
if index != -1:
obj = bpy.data.objects[index]
obj.data.update(calc_tessface=True)
export_mesh(obj, '/tmp')
if __name__ == "__main__":
idx = sys.argv.index('--')
argv = sys.argv[idx+3:]
path = sys.argv[idx+2]
io_ogre_path = sys.argv[idx+1]
sys.path.append(io_ogre_path)
print(sys.path)
from ogre.scene import dot_scene
from ogre.mesh import dot_mesh
from ogre.mesh import dot_skeleton
if argv[0] == "scene":
scene_name = argv[1]
dot_scene(path, scene_name=scene_name)
Oops, something went wrong.

0 comments on commit b593e26

Please sign in to comment.