Export Mesh Operators

bpy.ops.export_mesh.ply(filepath='', check_existing=True, filter_glob='*.ply', use_ascii=False, use_selection=False, use_mesh_modifiers=True, use_normals=True, use_uv_coords=True, use_colors=True, global_scale=1.0, axis_forward='Y', axis_up='Z')

Export as a Stanford PLY with normals, vertex colors and texture coordinates

Parameters
  • filepath (string, (optional, never None)) – File Path, Filepath used for exporting the file

  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files

  • filter_glob (string, (optional, never None)) – filter_glob

  • use_ascii (boolean, (optional)) – ASCII, Export using ASCII file format, otherwise use binary

  • use_selection (boolean, (optional)) – Selection Only, Export selected objects only

  • use_mesh_modifiers (boolean, (optional)) – Apply Modifiers, Apply Modifiers to the exported mesh

  • use_normals (boolean, (optional)) – Normals, Export vertex normals

  • use_uv_coords (boolean, (optional)) – UVs, Export the active UV layer (will split edges by seams)

  • use_colors (boolean, (optional)) – Vertex Colors, Export the active vertex color layer

  • global_scale (float in [0.01, 1000], (optional)) – Scale

  • 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_mesh_ply/__init__.py:132

bpy.ops.export_mesh.stl(filepath='', check_existing=True, filter_glob='*.stl', use_selection=False, global_scale=1.0, use_scene_unit=False, ascii=False, use_mesh_modifiers=True, batch_mode='OFF', global_space=((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)), axis_forward='Y', axis_up='Z')

Save STL triangle mesh data

Parameters
  • filepath (string, (optional, never None)) – File Path, Filepath used for exporting the file

  • check_existing (boolean, (optional)) – Check Existing, Check and warn on overwriting existing files

  • filter_glob (string, (optional, never None)) – filter_glob

  • use_selection (boolean, (optional)) – Selection Only, Export selected objects only

  • global_scale (float in [0.01, 1000], (optional)) – Scale

  • use_scene_unit (boolean, (optional)) – Scene Unit, Apply current scene’s unit (as defined by unit scale) to exported data

  • ascii (boolean, (optional)) – Ascii, Save the file in ASCII file format

  • use_mesh_modifiers (boolean, (optional)) – Apply Modifiers, Apply the modifiers before saving

  • batch_mode (enum in ['OFF', 'OBJECT'], (optional)) –

    Batch Mode

    • OFF Off – All data in one file.

    • OBJECT Object – Each object as a file.

  • global_space (float multi-dimensional array of 4 * 4 items in [-inf, inf], (optional)) – Global Space, Export in this reference space

  • 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_mesh_stl/__init__.py:240