home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / moray32 / callmray.bat next >
DOS Batch File  |  1994-09-22  |  1KB  |  41 lines

  1. @echo off
  2. REM -------------------------------------------------------------------
  3. REM Batchfile to do the model/trace/model loop.
  4. REM Moray will search this file for a line containing the program name
  5. REM (which I can't write here, since it would be replaced) and replaces
  6. REM it with a call to the scene you were editing.
  7. REM -------------------------------------------------------------------
  8.  
  9. :ModelIt
  10. REM Change disk and directory to your modeller directory
  11. c:
  12. cd \MORAY
  13.  
  14. REM Call Moray to design or edit the scene. Moray will edit this line
  15. REM during the cycle. You can place any commandline parameter between
  16. REM the EXE name and the scene name.
  17. MORAY.EXE -B %1 MRYSTART.MDL
  18.  
  19. REM Check whether a render was requested (if so errorlevel is set to 16)
  20. if errorlevel 16 goto RenderIt
  21. if errorlevel 1 goto Error
  22. goto End
  23.  
  24. REM User asked Moray for a render, so change to the POV Scene directory 
  25. REM and call the GO.BAT that was created. You may need to edit these lines
  26. REM to reflect your directory structure
  27. :RenderIt
  28. c:
  29. cd \POVRAY2\SCENES
  30. call go.bat
  31.  
  32. REM After rendering go back to Moray for further design.
  33. goto ModelIt
  34.  
  35. REM MORAY exited with an error condition
  36. :Error
  37. echo.
  38. echo MORAY returned an error. Leaving the Editing/Rendering loop.
  39. echo.
  40. :End
  41.