Override Hot Shoe by script. - Script Writing - CHDK Forum

Override Hot Shoe by script.

  • 1 Replies
  • 2837 Views
Override Hot Shoe by script.
« on: 16 / July / 2015, 07:37:49 »
Advertisements
Hi friends I have a Canon SX50 and after I lot of search I can't find information if can I override hot shoe status by script (LUA o uBasic).

There is a way to do this?

I know that CHDK has this option, but for my script needs I need to set hot shoe as "empty", run some lines of code and set hot shoe as "present".

Best Regards, Jair

Re: Override Hot Shoe by script.
« Reply #1 on: 16 / July / 2015, 08:08:31 »
That capability was added to the CHDK  Enhanced Photo Operations menu starting with CHDK 1.3.0.

The menu item is called  Hotshoe override  and the options are [ Off  Empty  In Use ]

To access this from a script,  use the set_config_value( ) fuction.  Use something like this in your Lua script :

Code: [Select]
--[[
@title Hot Shoe
@chdk_version 1.3
]]--
cfg=require("gen/cnf_core")
print("hot shoe disable")
sleep(1000)
set_config_value(cfg.hotshoe_override,1)  -- set hot shoe as empty
sleep(1000)
print("hot shoe enable")
sleep(1000)
set_config_value(cfg.hotshoe_override,2)   -- set hot shoe as present
sleep(1000)
print("done")
sleep(1000)

Note : this needs to be added to the CHDK 1.3.0 user manual
« Last Edit: 16 / July / 2015, 08:14:39 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal