Just started my M3 scripting experiments and got in trouble straight away.The 120 build I downloaded obviously hasn't been enabled for native calls.Could you kindly point me in the right direction.
Just disabled it and tried a simple script that just calls
call_event_proc("EFLensCom.FocusSearchFar")Set focus to very near to see what would happen.Lens moved/focused, but not as I expected, ie to infinity.I guess the call is calling AF and trying to find the next focus fix?
It's normal under Menu Miscellaneus Stuff...https://chdk.fandom.com/wiki/Lua/Lua_Reference/Native_Function_CallsBut it looks like, sometimes is Brocken. I miss that point as well on my M3.It probably only works on my M3 because I made the setting when the menu was still available and the settings are saved.
Just disabled it and tried a simple script that just calls call_event_proc("EFLensCom.FocusSearchFar")
CHDK-DE builds are built with OPT_FORCE_LUA_CALL_NATIVE, which means native operations are always enabled and therefore don't show up in menu.
--[[@title M3 Focus Test@chdk_version 1.4--]]-- calls to use-- call_event_proc("EFLensCom.FocusSearchFar")-- call_event_proc("EFLensCom.FocusSearchNear")-- call_event_proc("EFLensCom.MoveFocus",steps,speed)call_event_proc("EFLensCom.FocusSearchNear")
I never notice this before...But only on M3. My SX50 and G1x have the native call menu in CHDK-DE.
#if !defined(OPT_FORCE_LUA_CALL_NATIVE) MENU_ITEM (0x5c,LANG_MENU_ENABLE_LUA_NATIVE_CALLS, MENUITEM_BOOL|MENUITEM_ARG_CALLBACK, &conf.script_allow_lua_native_calls, (int)gui_lua_native_call_warning ),#endif
Started by cyrustam
DSLR Hack development
Started by josheee12
Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by udo
« 1 2 3 4 »
Hotwire! Hardware Mods, Accessories and Insights
Started by eliaz
General Help and Assistance on using CHDK stable releases
Started by srsa_4c
« 1 2 ... 10 11 »