How to enable manual focus via script? - Script Writing - CHDK Forum
supplierdeeply

How to enable manual focus via script?

  • 3 Replies
  • 3430 Views
*

Offline fh

  • *
  • 1
How to enable manual focus via script?
« on: 04 / February / 2014, 02:11:01 »
Advertisements
Hi,
I'm new in CHDK.
In the <Alt> menu I can enable manual focus via 'UP'.
After switching the camera on this is always Off.
Is there a script command to set it On like via <Alt> menu?
Thank's in advance.

Re: How to enable manual focus via script?
« Reply #1 on: 04 / February / 2014, 08:31:48 »
In the <Alt> menu I can enable manual focus via 'UP'. After switching the camera on this is always Off.
Go to the "Enhanced Photo Operations" menu and scroll down to the bottom where it says  Disable Overrides on Startup.    Disable that option.

Quote
Is there a script command to set it On like via <Alt> menu?
set_aflock()

This is a work in process : http://chdk.wikia.com/wiki/CHDK_Manual_Focus_and_Subject_Distance_Overrides  - I'm still working on it.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: How to enable manual focus via script?
« Reply #2 on: 12 / March / 2015, 19:36:03 »
There's also set_mf(x).

But I can't make out any difference to set_aflock(x) from the description:
http://chdk.wikia.com/wiki/Script_commands
Canon Powershot D30 w/ CHDK 1.3.0

Re: How to enable manual focus via script?
« Reply #3 on: 12 / March / 2015, 19:51:21 »
There's also set_mf(x). But I can't make out any difference to set_aflock(x) from the description:
http://chdk.wikia.com/wiki/Script_commands
set_aflock( ) causes the camera to focus and then lock the resulting focus setting such that it won't attempt to refocus on subsequent shots.

set_mf( ) is used to enable Canon's built-in manual focus ( MF ) mode so that the set_focus( ) function will work.   It's not needed for all cameras - the get_sd_over_modes() function can be used to figure it out for a specific camera.

see also : CHDK Scripting Cross Reference Page
« Last Edit: 12 / March / 2015, 19:55:13 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal