home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
moray32
/
callmray.bat
next >
Wrap
DOS Batch File
|
1994-09-22
|
1KB
|
41 lines
@echo off
REM -------------------------------------------------------------------
REM Batchfile to do the model/trace/model loop.
REM Moray will search this file for a line containing the program name
REM (which I can't write here, since it would be replaced) and replaces
REM it with a call to the scene you were editing.
REM -------------------------------------------------------------------
:ModelIt
REM Change disk and directory to your modeller directory
c:
cd \MORAY
REM Call Moray to design or edit the scene. Moray will edit this line
REM during the cycle. You can place any commandline parameter between
REM the EXE name and the scene name.
MORAY.EXE -B %1 MRYSTART.MDL
REM Check whether a render was requested (if so errorlevel is set to 16)
if errorlevel 16 goto RenderIt
if errorlevel 1 goto Error
goto End
REM User asked Moray for a render, so change to the POV Scene directory
REM and call the GO.BAT that was created. You may need to edit these lines
REM to reflect your directory structure
:RenderIt
c:
cd \POVRAY2\SCENES
call go.bat
REM After rendering go back to Moray for further design.
goto ModelIt
REM MORAY exited with an error condition
:Error
echo.
echo MORAY returned an error. Leaving the Editing/Rendering loop.
echo.
:End