home *** CD-ROM | disk | FTP | other *** search
/ Maximum 3D 3 / m3d-p3.iso / 3DS_MAX / 3DSMAX.2_0 / SCRIPTS / ASCREAD.MS < prev    next >
Text File  |  1997-10-19  |  487b  |  18 lines

  1. --Created by: Ravi Karra [ravi.karra@ktx.com]
  2. --This scripts reads positional data from a ascii file and creates objects
  3. --You need to have the ascii.dat file in the same directory as this 
  4.  
  5. resetMaxFile #noPrompt
  6. pos = [0.0,0.0,0.0]
  7.  
  8. f = openfile ("ascii.dat") 
  9. while (not eof f) do
  10. (
  11.     pos.x = readvalue f; pos.y = readvalue f; pos.z = readvalue f;
  12.     format "%\t%\t%\n" pos.x pos.y pos.z
  13.     tea    = cylinder radius:10 height:40 pos:pos    
  14. )    
  15. close f
  16. max tool zoomextents all
  17.  
  18.