20.08.2015 Views

1 Scripting

1 Scripting - Digital Cinema Arts

1 Scripting - Digital Cinema Arts

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Scripting</strong> With Hscript and the c-shellWRITING THE RENDER SCRIPTCreate a render script called compare and save it in the same directory as compare.hip.The full script is below and makes several assumptions. First, the .hip Þlesthat are the animator-supplied .hip Þles, must both have an output driver calledmantra1. Second, the render script is called compare and is located in the samedirectory as the compare.hip Þle.usagecompare examplecompare animator1.hip animator2.hip 1 50 640 480This will render out frames 1 to 1 50 from each of the Þles called animator1.hip andanimator2.hip at 640 × 480 resolution and the composite the images together usingthe compare.hip Þle created above.CODE FOR COMPARE RENDER SCRIPT#! /bin/csh -f#check to see if the user supplied the correct number of arguments#- exit if notif ($#argv < 6) thenecho "USEAGE: ren_script "exitendifset HIP_FILE1 = $1 # set up user supplied argumentsset HIP_FILE2 = $2set START = $3set END = $4set XRES = $5set YRES = $6set OUT_FILE1 = sequence1_\$F.picset OUT_FILE2 = sequence2_\$F.picset COMP_OUTPUT = comp_\$F.pic#Render out the first sequence of images#hscript

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!