title: Importing OBJ file to maya scene (MEL/Python)
body: <p>I am working on a script in which I need to import an external OBJ file. I have been reading and I think that should be done using the <strong>file</strong> command. I go to the maya documentation and find no clear examples about using it. What arguments should I pass in order to do that?</p>
  
  <p>I have seen an example in MEL which is in this thread: <a href="http://forums.cgsociety.org/showthread.php?t=144296" rel="nofollow">http://forums.cgsociety.org/showthread.php?t=144296</a></p>
  
  <pre><code>file -import -type "OBJ" -options "mo=1" -pr $sourceFiles[$x];
  </code></pre>
  
  <p>Furthermore there should be a useful path for maya to go and collect the OBJ item, where would it be? Should I write an environment variable or something in order to query the location of the OBJ so that maya can pick it from there and bring it to the scene?</p>
  
  <p>Thanks guys.</p>