#!/bin/csh -f 
# @(#)conv_vst	31.1 96/04/03
# The script 'conv_vst' is called after closing the file rendered using
# render ani, render still, gigbatch, giganibatch 
# This script can be located anywhere in the path set in your .cshrc
# If there the first occurence will be executed using system
#
# first parameter  ($1): path of the output file
# second parameter ($2): base filename without extension
# third parameter  ($3): extension to the filename (normaly 'vst')
#
# Uncommenting is done by removing the '#' at the start of a line
#############################################################################
# uncomment next line in order to get files with extension .tga
# mv $1/$2.$3 $1/$2.tga
#############################################################################
# uncomment next line in order to convert output to Color Postscript files
# gig_conv -i tga -o eps -r $1/$2.$3 -w $1/$2.eps
#############################################################################
# uncomment next lines if you want to  do different things for animation
# and for stills, for animation the base filename is split into the name and
# the framenumber ($name resp. $num). Uses the Kornshell
#   set num=`ksh -c 'x='$2';y=${x%[0-9][0-9][0-9][0-9]};z=${x#$y};echo $z'`
#   if ($num != "") then
#     set name=`ksh -c 'x='$2';y=${x%[0-9][0-9][0-9][0-9]};echo $y'`
#     echo animation name: $name, frame $num
#   else 
#     echo still name: $2
#   endif
# end of animation/still splitting stuff
#############################################################################
# uncomment next lines to split 32 bit matte in matte file (_m.vst) and 24 bit
# color file (_c.vst)
# gig_conv -i tga -o tga -c a_rgba -r $1/$2.$3 -w $1/$2_m.vst
# gig_conv -i tga -o tga -c x_rgb -r $1/$2.$3 -w $1/$2_c.vst
#############################################################################
