set_capture_mode(9)sleep(10)post_levent_to_ui("ModeDialToMovie")
@ntstaticI tried this scripted mode change on my SX100. It doesn't crash on "set", but the shooting menu is inappropriate, as in your case.However, just tried running this scriptCode: (lua) [Select]set_capture_mode(9)sleep(10)post_levent_to_ui("ModeDialToMovie")from a random mode (Av or Tv), and it's a step closer, meaning the shooting menu is now correct. The jogdial still doesn't do what it is supposed to. Mode 9 is MODE_VIDEO_STD (see the enum in include/modelist.h).Side note: I had to do the same in my S1IS port to make mode change work.
does this mean that "post_levent_to_ui("ModeDialToMovie")" should be called after every change in mode ?(not only to video) so that the camera knows what mode menu has to be shown ?
There should be a ModeDialTo* levent for each position. Suppose it's possible it doesn't actually matter which one you use...You can get a list of levents on your camera by iterating over the levent table with get_levent_def_by_index(index), see http://chdk.wikia.com/wiki/Lua/Lua_Reference/Levent
is there somewhere i can get a list of string values for the 'event'.
con 15> !t={};con:execwait('b=msg_batcher() i=0 repeat local v={get_levent_def_by_index(i)} b:write(v) i=i+1 until not v[1] b:flush()',{libs='msg_batcher',msgs=chdku.msg_unbatcher(t)}) return t
!for i,v in ipairs(t) do if v[1] ~= '' then print(v[1]) end end
maybe i could create a custom setmode script for each of my cameras(I mostly use the sx series sx 120, sx 130 and now sx 150 etc ) for the moment i am just updating my pc side interface to include the "post_levent_to_ui("ModeDialToMovie")"
You could probably come up with a way to extend setmode.lua to post the right events given a camera specific table.
after i try to do the firmware update, it just turns off, and won't turn back on 'til i take out the SD card.
anybody got any suggestions, or is this camera doomed to stock functions?
Started by jbourne84 General Discussion and Assistance
Started by NovaJeff General Discussion and Assistance
Started by moxican General Discussion and Assistance
Started by hiker_jon General Discussion and Assistance
Started by bill.sikes.7 General Discussion and Assistance