On the M10 I don't have a jog wheel and thus I can't use wheel_right etc.
function set_ETTR() local histo={} local total = 0 histo,total=get_live_histo() total = 0 local max = #histo local start = max-hlw for i = start,(max-1),1 do total = total + histo[i] end -- get the total count in the requested quartiles press("shoot_half") repeat sleep(10) until get_shooting() s = get_tv96() set_user_tv96(s) release("shoot_half") repeat sleep(10) until (not get_shooting()) if total > 0 then -- overexposed i = 0 repeat wheel_right() -- move 1 stop, but note camera must be set to 1/3 stops wheel_right() wheel_right() histo,total=get_live_histo() total = 0 for i = start,(max-1),1 do total = total + histo[i] end until total <= 0 repeat wheel_left() histo,total=get_live_histo() total = 0 for i = start,(max-1),1 do total = total + histo[i] end until total > 0 wheel_right() elseif total <= 0 then -- underexposed i = 0 repeat wheel_left() -- move 1 stop, but note camera must be set to 1/3 stops wheel_left() wheel_left() histo,total=get_live_histo() total = 0 for i = start,(max-1),1 do total = total + histo[i] end until total > 0 repeat wheel_right() histo,total=get_live_histo() total = 0 for i = start,(max-1),1 do total = total + histo[i] end until total <= 0 end returnend
the following function crashes the M10
Quote from: pigeonhill on 11 / June / 2022, 05:39:00the following function crashes the M10Is that an actual crash (cam powers off), or a freeze (camera on but unresponsive)? If the former, can you get a romlog?Which shooting mode does your script expect? Since the camera only has that one ring to adjust things, one must use the "up" button to switch between various controls (Av, Tv, shutter speed or exposure compensation) when the current shooting mode has more than one of them.
I have looked in the log folder, but no romlog.
Too large to cut and past:
Quote from: pigeonhill on 11 / June / 2022, 07:27:55Too large to cut and past:You can also attach smaller files here, no need to inline them.Can you try adding some sleep (say, 10 ms) between "wheel" rotations?
Started by waldo « 1 2 3 » General Discussion and Assistance
Started by cyril42e General Discussion and Assistance
Started by Bernd R DryOS Development
Started by CNW Script Writing
Started by pwcal2 Feature Requests