Import Mesh Operators

bpy.ops.import_mesh.stl(filepath='', filter_glob='*.stl', files=None, directory='', global_scale=1.0, use_scene_unit=False, use_facet_normal=False, axis_forward='Y', axis_up='Z')

Load STL triangle mesh data

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

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

  • files (bpy_prop_collection of OperatorFileListElement, (optional)) – File Path

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

  • global_scale (float in [1e-06, 1e+06], (optional)) – Scale

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

  • use_facet_normal (boolean, (optional)) – Facet Normals, Use (import) facet normals (note that this will still give flat shading)

  • axis_forward (enum in ['X', 'Y', 'Z', '-X', '-Y', '-Z'], (optional)) – Forward

  • axis_up (enum in ['X', 'Y', 'Z', '-X', '-Y', '-Z'], (optional)) – Up