playrec_mode works fine on the SD400 (#1 aka MODE_P is the Manual mode, as usual on the Ixus cameras)
Propcase->mode translation function doesn't probably need to be available to script writers (get_shooting_mode will just need to go through the modemap and return the CHDK mode number usable for set_shooting_mode), as long as it doesn't crash when modemap is buggy or incomplete?
Setting the DP button as a shortcut to movie in canon menu gives a value of (current mode)+1024 while movie is recording, unless already in movie mode
{ MODE_VIDEO_STD, 2597 }, // video standby { MODE_VIDEO_STD, 3622 }, // video in progress
Buggy modemaps don't really worry me that much, fixing those has been on the todo list for ages and this thing ought to make that finally more or less happen. Or do you think there's physical danger in switching to incorrect modes on some cameras?
And what is mode #2? "M" mode with custom exposure (1..15 s)?
Yes, mode #2 seem to be M mode with "Long shutter" (not available from the Canon menu on the SD400);the exposure in this mode #2 is 1", also shown on the Canon OSD.
According to ixus50 (russian) manual, this mode must be actviated from camera main menu (in 'M' mode). Exposure can be set from exposure compensation submenu by pressing 'menu' button. This is true for ixus700, but I don't have access to ixus50...
Is there a way to mask(disable/enable) some logical events (especially playback<->record switching)? p.s. Built-in forum search cannot find "post_levent_to_ui". Very strange.
done
You might experiment with set_levent_active. It seems to stop mode dial change events generated by the physical dial from being posted.
Quote from: reyalp on 30 / November / 2009, 04:06:02You might experiment with set_levent_active. It seems to stop mode dial change events generated by the physical dial from being posted.Without success And about modemaps:How about "C" ("C1", "C2") mode? Its value cannot be detected using propertycase browser (because it is disguised as one of other mode), but this mode can be set using lua set_capture_mode(_canon).For example, for SX10 set_capture_mode_canon(8225) sets "C" mode.