Import Mesh Operators¶
-
bpy.ops.import_mesh.
ply
(filepath="", files=None, directory="", filter_glob="*.ply")¶ Load a PLY geometry file
Parameters: - filepath (string, (optional, never None)) – File Path, Filepath used for importing the file
- files (
bpy_prop_collection
ofOperatorFileListElement
, (optional)) – File Path, File path used for importing the PLY file - directory (string, (optional, never None)) – directory
- filter_glob (string, (optional, never None)) – filter_glob
File:
-
bpy.ops.import_mesh.
stl
(filepath="", axis_up='Z', axis_forward='Y', filter_glob="*.stl", files=None, directory="", global_scale=1.0, use_scene_unit=True)¶ Load STL triangle mesh data
Parameters: - filepath (string, (optional, never None)) – File Path, Filepath used for importing the file
- axis_up (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Up
- axis_forward (enum in [‘X’, ‘Y’, ‘Z’, ‘-X’, ‘-Y’, ‘-Z’], (optional)) – Forward
- filter_glob (string, (optional, never None)) – filter_glob
- files (
bpy_prop_collection
ofOperatorFileListElement
, (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
File: