# # Rename file from dragon_script.sh.txt to dragon_script.sh # # In Dragon Stop Motion, go to the Advanced tab of Preferences # and choose this file for Action Script. # # Example script showing input arguments # arguments should be obvious, except "Action" # which can be "POSITION", "SHOOT", "DELETE", or "CC". # # "POSITION" is sent whenever Dragon moves to a new frame. # This is probably what you want to use. After shooting # frame 10, when Dragon is ready to capture frame 11, it # sends "POSITION 11". # # "SHOOT" happens immediately before shooting. # # "DELETE" happens immediately before deleting. # # "CC" is capture complete. There is an additional argument, # the file name of the main downloaded image. echo "Dragon Stop Motion Script" echo "Production : $1" echo "Scene : $2" echo "Take : $3" echo "Action : $4" echo "Frame : $5" echo "Exposure : $6" echo "Exposure Name : $7" echo "Filename : $8" if [ "$4" == "POSITION" ] then echo "Move to frame $5" >> ~/dragon_script_log.txt fi if [ "$4" == "CC" ] then echo "New image $5-$6 -> $8" >> ~/dragon_script_log.txt fi