Export Scene Operators

bpy.ops.export_scene.autodesk_3ds(filepath="", check_existing=True, filter_glob="*.3ds", use_selection=False, axis_forward='Y', axis_up='Z')

Export to 3DS file format (.3ds)

Parameters:
  • filepath (string, (optional)) – File Path, Filepath used for exporting the file
  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files
  • use_selection (boolean, (optional)) – Selection Only, Export selected objects only
  • axis_forward (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Forward
  • axis_up (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Up
File :

addons/io_scene_3ds/__init__.py:164

bpy.ops.export_scene.fbx(filepath="", check_existing=True, filter_glob="*.fbx", use_selection=False, global_scale=1.0, axis_forward='-Z', axis_up='Y', object_types={'ARMATURE', 'LAMP', 'CAMERA', 'MESH', 'EMPTY'}, use_mesh_modifiers=True, mesh_smooth_type='FACE', use_mesh_edges=False, use_anim=True, use_anim_action_all=True, use_default_take=True, use_anim_optimize=True, anim_optimize_precision=6.0, path_mode='AUTO', use_rotate_workaround=False, xna_validate=False, batch_mode='OFF', use_batch_own_dir=True, use_metadata=True)

Selection to an ASCII Autodesk FBX

Parameters:
  • filepath (string, (optional)) – File Path, Filepath used for exporting the file
  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files
  • use_selection (boolean, (optional)) – Selected Objects, Export selected objects on visible layers
  • global_scale (float in [0.01, 1000], (optional)) – Scale, Scale all data. Some importers do not support scaled armatures!
  • axis_forward (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Forward
  • axis_up (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Up
  • object_types (enum set in {‘EMPTY’, ‘CAMERA’, ‘LAMP’, ‘ARMATURE’, ‘MESH’}, (optional)) – Object Types
  • use_mesh_modifiers (boolean, (optional)) – Apply Modifiers, Apply modifiers to mesh objects
  • mesh_smooth_type (enum in [‘OFF’, ‘FACE’, ‘EDGE’], (optional)) –

    Smoothing

    • OFF Off, Don’t write smoothing.
    • FACE Face, Write face smoothing.
    • EDGE Edge, Write edge smoothing.
  • use_mesh_edges (boolean, (optional)) – Include Edges, Edges may not be necessary, can cause import pipeline errors with XNA
  • use_anim (boolean, (optional)) – Include Animation, Export keyframe animation
  • use_anim_action_all (boolean, (optional)) – All Actions, Export all actions for armatures or just the currently selected action
  • use_default_take (boolean, (optional)) – Include Default Take, Export currently assigned object and armature animations into a default take from the scene start/end frames
  • use_anim_optimize (boolean, (optional)) – Optimize Keyframes, Remove double keyframes
  • anim_optimize_precision (float in [1, 16], (optional)) – Precision, Tolerence for comparing double keyframes (higher for greater accuracy)
  • path_mode (enum in [‘AUTO’, ‘ABSOLUTE’, ‘RELATIVE’, ‘MATCH’, ‘STRIP’, ‘COPY’], (optional)) –

    Path Mode, Method used to reference paths

    • AUTO Auto, Use Relative paths with subdirectories only.
    • ABSOLUTE Absolute, Always write absolute paths.
    • RELATIVE Relative, Always write relative patsh (where possible).
    • MATCH Match, Match Absolute/Relative setting with input path.
    • STRIP Strip Path, Filename only.
    • COPY Copy, copy the file to the destination path (or subdirectory).
  • use_rotate_workaround (boolean, (optional)) – Rotate Animation Fix, Disable global rotation, for XNA compatibility
  • xna_validate (boolean, (optional)) – XNA Strict Options, Make sure options are compatible with Microsoft XNA
  • batch_mode (enum in [‘OFF’, ‘SCENE’, ‘GROUP’], (optional)) –

    Batch Mode

    • OFF Off, Active scene to file.
    • SCENE Scene, Each scene as a file.
    • GROUP Group, Each group as a file.
  • use_batch_own_dir (boolean, (optional)) – Own Dir, Create a dir for each exported file
  • use_metadata (boolean, (optional)) – Use Metadata
File :

addons/io_scene_fbx/__init__.py:232

bpy.ops.export_scene.obj(filepath="", check_existing=True, filter_glob="*.obj;*.mtl", use_selection=False, use_all_scenes=False, use_animation=False, use_apply_modifiers=True, use_edges=True, use_normals=False, use_hq_normals=True, use_uvs=True, use_materials=True, use_triangles=False, use_vertex_groups=False, use_nurbs=False, use_blen_objects=True, group_by_object=False, group_by_material=False, keep_vertex_order=False, global_scale=1.0, axis_forward='-Z', axis_up='Y', path_mode='AUTO')

Save a Wavefront OBJ File

Parameters:
  • filepath (string, (optional)) – File Path, Filepath used for exporting the file
  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files
  • use_selection (boolean, (optional)) – Selection Only, Export selected objects only
  • use_all_scenes (boolean, (optional)) – All Scenes
  • use_animation (boolean, (optional)) – Animation
  • use_apply_modifiers (boolean, (optional)) – Apply Modifiers, Apply modifiers (preview resolution)
  • use_edges (boolean, (optional)) – Edges
  • use_normals (boolean, (optional)) – Normals
  • use_hq_normals (boolean, (optional)) – High Quality Normals
  • use_uvs (boolean, (optional)) – UVs
  • use_materials (boolean, (optional)) – Materials
  • use_triangles (boolean, (optional)) – Triangulate
  • use_vertex_groups (boolean, (optional)) – Polygroups
  • use_nurbs (boolean, (optional)) – Nurbs
  • use_blen_objects (boolean, (optional)) – Objects as OBJ Objects
  • group_by_object (boolean, (optional)) – Objects as OBJ Groups
  • group_by_material (boolean, (optional)) – Material Groups
  • keep_vertex_order (boolean, (optional)) – Keep Vertex Order
  • global_scale (float in [0.01, 1000], (optional)) – Scale, Scale all data
  • axis_forward (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Forward
  • axis_up (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Up
  • path_mode (enum in [‘AUTO’, ‘ABSOLUTE’, ‘RELATIVE’, ‘MATCH’, ‘STRIP’, ‘COPY’], (optional)) –

    Path Mode, Method used to reference paths

    • AUTO Auto, Use Relative paths with subdirectories only.
    • ABSOLUTE Absolute, Always write absolute paths.
    • RELATIVE Relative, Always write relative patsh (where possible).
    • MATCH Match, Match Absolute/Relative setting with input path.
    • STRIP Strip Path, Filename only.
    • COPY Copy, copy the file to the destination path (or subdirectory).
File :

addons/io_scene_obj/__init__.py:337

bpy.ops.export_scene.x3d(filepath="", check_existing=True, filter_glob="*.x3d", use_selection=False, use_apply_modifiers=True, use_triangulate=False, use_normals=False, use_compress=False, use_hierarchy=True, use_h3d=False, axis_forward='Z', axis_up='Y', path_mode='AUTO')

Export selection to Extensible 3D file (.x3d)

Parameters:
  • filepath (string, (optional)) – File Path, Filepath used for exporting the file
  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files
  • use_selection (boolean, (optional)) – Selection Only, Export selected objects only
  • use_apply_modifiers (boolean, (optional)) – Apply Modifiers, Use transformed mesh data from each object
  • use_triangulate (boolean, (optional)) – Triangulate, Write quads into ‘IndexedTriangleSet’
  • use_normals (boolean, (optional)) – Normals, Write normals with geometry
  • use_compress (boolean, (optional)) – Compress, Compress the exported file
  • use_hierarchy (boolean, (optional)) – Hierarchy, Export parent child relationships
  • use_h3d (boolean, (optional)) – H3D Extensions, Export shaders for H3D
  • axis_forward (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Forward
  • axis_up (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Up
  • path_mode (enum in [‘AUTO’, ‘ABSOLUTE’, ‘RELATIVE’, ‘MATCH’, ‘STRIP’, ‘COPY’], (optional)) –

    Path Mode, Method used to reference paths

    • AUTO Auto, Use Relative paths with subdirectories only.
    • ABSOLUTE Absolute, Always write absolute paths.
    • RELATIVE Relative, Always write relative patsh (where possible).
    • MATCH Match, Match Absolute/Relative setting with input path.
    • STRIP Strip Path, Filename only.
    • COPY Copy, copy the file to the destination path (or subdirectory).
File :

addons/io_scene_x3d/__init__.py:169

Previous topic

Export Mesh Operators

Next topic

File Operators