#!/bin/csh -f
#
#   This uses the first four arguments on the command line

set BMOT  = $1
set START = $2
set END   = $3
set INC   = $4

acting $BMOT <<ENDCAT >& REN.out

	ostring -s world picture Pic/imgname\\\$F.pic
#
#   the following command is equivalent to the loop below
#
#	mantra -f $START $END -i $INC -c mantra -w 720 -h 486

	for i = $START to $END step $INC
		fcur \$i
		echo Doing frame \$i
		mantra -R 720 486 -c mantra  #or mantra -c mantra -w 720 -h 486
	end

	echo all done

	quit
ENDCAT
