#!/bin/csh -f set Filename = $1 set temp = $HOME"/Shock.tmp" set shock = $HOME"/Shock.data" set backup = $HOME"/"$2".data" switch ($#argv) case 2: if ( -e $Filename) then awk '{print ($1*0.0333), $3, $4, $5}' $Filename > $temp echo "1" > $shock echo "We got to Here" sed 's/,/:/g;s/:/ /g;s/+/ /g;s/ / /g;s/ / /g' $temp | awk '{print $0 " 0 0 0 0"}' >> $shock echo "We got to Here2" #awk '{print $0}' /usr/tmp/Shock.data cp $shock $backup echo "" echo "Conversion done, new data is in "$shock echo "This file is used by the DataFileDriver within Softimage Channels" echo "" rm $temp else goto error endif breaksw error: echo "" echo "The file '"$1"' specified does NOT exist" echo "Please try again" echo "" exit default: echo "flame2soft" echo "" echo "Converts a tracking data file from the FLAME to Softimage" echo "channel format." echo "" echo "Usage:" echo "trakF2S " echo "" echo "The resulting file will be saved as "$shock echo "and backed up as with the extension .data added" echo "" echo "The following is VERY important:" echo "The Shock.data file should be placed in the directory where" echo "you were when Soft was started. As this is the directory that" echo "the DataFileDriver looks to find the file." echo "" echo "This file is used by the DataFileDriver found within Channels" echo "See the documentation on Shock3D for more information" echo "" echo "Copyright 1997, Phil Jones" endsw