Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import bpy
  2. import os
  3.  
  4. blend_file_path = bpy.data.filepath
  5. directory = os.path.dirname(blend_file_path)
  6. target_file = os.path.join(directory, 'myfile.obj')
  7.  
  8. bpy.ops.export_scene.obj(filepath=target_file)
  9.  
  10. bpy.ops.export_scene.obj(filepath="", check_existing=True, axis_forward='-Z', axis_up='Y', filter_glob="*.obj;*.mtl", use_selection=False, use_animation=False, use_mesh_modifiers=True, use_edges=True, use_smooth_groups=False, use_smooth_groups_bitflags=False, use_normals=True, use_uvs=True, use_materials=True, use_triangles=False, use_nurbs=False, use_vertex_groups=False, use_blen_objects=True, group_by_object=False, group_by_material=False, keep_vertex_order=False, global_scale=1, path_mode='AUTO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement