Also, could a function for executing camera commands directly (exec(camera_function_to_execute(parameters, for, the, function))) be easily added?
camera_function_to_execute must be bound to lua (luascript.c).
But the Lua philosophy is to bind only the most basic function to Lua and define new convenience functions within Lua itself.
Like binding get_prop and defining a get_mode function.
Something like this (for my IXUS 70/untested)
function get_mode()
local pg = getprop(49)
if pg == -32764 then
return "manual"
elseif pg == -32768 then
return "auto"
elseif
...
end
This functions can be defined in a submodule like chdk.lua and all scripts can use this functions after calling require:
require "chdk"
if get_mode() == "manual" then
print "good choice"
end
Well, this will only work with the next patch.