The script in #8 did´t work without the two sleep commands, so its not only shoot that has my problem...I will see if I can narrow it down somehow.What are the conditions that have to be met, to make a succesful shoot ?Flash ready, focus ready etc .Is it possible to print them in the script to see whats different when the script stops ?
What are the conditions that have to be met, to make a succesful shoot ?
More testing using this loop that seems to work with flash...--------------------------------- for s=1 to n press "shoot_half" do sleep 50 until get_shooting = 1 click "shoot_full_only" release "shoot_half" get_focus f get_dof d g=f+d*2/3 set_focus g sleep 1500 print g,d if g>50000 then s=n if d<0 then s=n next s----------------------------I used a "print get_flash_ready,get_shooting,get_focus_ok" between each line to se what happens during the script.- A print between click "shoot_full_only" and release "shoot_half" sometimes crashes the camera - All 3 parameters are always the same.- They are 1 after press "shoot_half" until sleep 1500, otherwise 0.- If I replace the sleep 1500 with a wait for get_shooting=0 , the parameters sometimes change from 1 to 0 somewhere between these lines click "shoot_full_only" release "shoot_half" get_focus f get_dof d g=f+d*2/3 set_focus gas a result the script loops without making a succesful photo.
rem Leif Karlsson@title Test Focus bracketing@param n Max number of steps @default n 300sleep 2000print_screen 2 for s=1 to n print "A",get_shooting,get_flash_ready,get_focus_ok shoot print "B",get_shooting,get_flash_ready,get_focus_ok get_focus f print "C",get_shooting,get_flash_ready,get_focus_ok get_dof d print "D",get_shooting,get_flash_ready,get_focus_ok g=f+d*2/3 print "E",get_shooting,get_flash_ready,get_focus_ok set_focus g print "F",get_shooting,get_flash_ready,get_focus_ok print g,d print "G",get_shooting,get_flash_ready,get_focus_ok if g>50000 then s=n print "H",get_shooting,get_flash_ready,get_focus_ok if d<0 then s=n print "I",get_shooting,get_flash_ready,get_focus_ok next s print_screen 0 end
rem Leif Karlsson@title Test Focus bracketing flash@param n Max number of steps @default n 300sleep 2000print_screen 1 for s=1 to n print "A",get_shooting,get_flash_ready,get_focus_ok press "shoot_half" print "B",get_shooting,get_flash_ready,get_focus_ok do sleep 50 until get_shooting = 1 print "C",get_shooting,get_flash_ready,get_focus_ok click "shoot_full_only" print "D",get_shooting,get_flash_ready,get_focus_ok release "shoot_half" print "E",get_shooting,get_flash_ready,get_focus_ok get_focus f print "F",get_shooting,get_flash_ready,get_focus_ok get_dof d print "G",get_shooting,get_flash_ready,get_focus_ok g=f+d*2/3 print "H",get_shooting,get_flash_ready,get_focus_ok set_focus g print "I",get_shooting,get_flash_ready,get_focus_okrem sleep 1500 print g,d print "J",get_shooting,get_flash_ready,get_focus_ok if g>50000 then s=n print "K",get_shooting,get_flash_ready,get_focus_ok if d<0 then s=n print "L",get_shooting,get_flash_ready,get_focus_ok next s print_screen 0 end
Started by airman99 Script Writing
Started by Barney Fife Feature Requests
Started by SpumCo Script Writing
Started by mellow-yellow Script Writing
Started by Andre-K General Help and Assistance on using CHDK stable releases