title: Import stl script blender
body: <p>What I am trying to do is import a .stl model into blender using a script (in python). I have tried using the command below but I can't seem to get it to work. The problem is I don't know the format of the "Filepath", "files", and "directory" part of the command. </p>
  
  <pre><code>bpy.ops.import_mesh.stl(filepath="", filter_glob="*.stl", files=None, directory="")
  </code></pre>
  
  <p>Can someone please show me how to get this working; that is all I ask.</p>
  
  <pre><code>bpy.ops.import_mesh.stl(filepath="C://Users//Dom//Documents//DomCorp.//mymodel.stl", filter_glob="*.stl", files=None, directory="")
  </code></pre>
  
  <p>When I write this I get this errror:</p>
  
  <pre><code>TypeError: Converting py args to operator properties:  IMPORT_MESH_OT_stl.files expected a each sequence member to be a dict for an RNA collection, not str
  </code></pre>
  
  <p>Since I am fairly new to programming I don't know what it means so can someone help and explain it and possibly come up with a fix?? :)</p>