Hello, I've used CHDK for months and now have begun to unsuccessfully write a script. I've researched and problem-shooted (shot?) this script for over 20 hours. Only now, in my desperation, have I come to bother you all with a request for help. (Realized late that this might be best in the script section.)
I'm using a Canon TX-1 ver 1.01b with the "allbest #51" 5/08 CHDK version. For an effect, I'd like to take a shot with the aperture wide open (2.82) and a short shutter speed (say .5 seconds), then a shot immediately after with a higher av (8.0, only because I understand that's the max in a script) and longer tv (2 seconds). I'd then like to loop this process n times. This is the simple script I wrote:
@title Test
@param a Shoot count
@default a 20
@param b Interval (seconds)
@default b 4
@param c Av Short Burst
@default c 9
@param d Tv Short Burst
@default d 3
@param e Av Long Burst
@default e 18
@param f Tv Long Burst
@default f -3
t=b*1000
for n=1 to a/2
set_av96 c
set_tv96 d
shoot
set_av96 e
set_tv96 f
shoot
sleep t
next n
end
The timing, number of shots and loop work fine except the script doesn't set the av or tv. Either it sets it automatically or uses whatever I fix as the av, tv values in the "Extra Photo Operations" menu of CHDK. I read that the set_av/tv function may not work when following the shoot command, but it didn't work in my script even when I changed it to a single shot and loop. I tried creating a subroutine but am not skilled enough and kept receiving a parse value or UNK error.
I began with set_av c and set_tv d, etc. which didn't work and thought adding the 96 would resolve the problem. It didn't. I tried "set_user_av_id n," "set_user_tv_id m," "print n,m" to determine if the TX-1 has different values than the A650's value set which I've been using. All it prints is "12, -12." I'm not sure if that's very meaningful to anyone. I did try a get_tv/av script on the TX-1 and received a value of 355 for f-stop 3.5 and a value of 160 for (I think) .5 seconds. However, the script failed when I tried to use these values in the script.
I'm really at my wit's end. I've lost my whole weekend trying to write this simple script and have a strong feeling I'm making some simple error the more experienced CHDK users might be able to point out quickly. Regardless, I'd like to make a quick but great thanks to all the developers/users for their work and help on this great tool!