Magic Lantern Forum

Using Magic Lantern => General Help Q&A => Topic started by: wolf on June 26, 2012, 12:36:10 PM

Title: Lua Script - Half Pressed Button
Post by: wolf on June 26, 2012, 12:36:10 PM
Hi there,

I would like to create a silent picture (422) with Lua.
Is there a command for a "half pressed Button" in Lua, something like the "shoot(wait, allow_af)" command?
Would it be possible to emulate a half press button with "setprop(id,value) " if there is no command for it, yet?

Thanks
Title: Re: Lua Script - Half Pressed Button
Post by: a1ex on June 26, 2012, 12:44:01 PM
Half-shutter press is emulated with PROP_REMOTE_SW1 (0x80020015) : 1 = pressed, 0 not pressed.
Title: Re: Lua Script - Half Pressed Button
Post by: wolf on June 26, 2012, 01:17:40 PM
Thanks A1ex!
I will try it.
BTW, How do enable Lua support in the Makefile? CONFIG_PLUGINS = n?

Title: Re: Lua Script - Half Pressed Button
Post by: scrax on June 26, 2012, 01:28:30 PM
Also console
CONFIG_PLUGINS = y
CONFIG_CONSOLE = y