Canon MF - General Discussion and Assistance - CHDK Forum  

Canon MF

  • 7 Replies
  • 1604 Views
Canon MF
« on: 20 / January / 2020, 02:07:09 »
Advertisements
Does anyone know if CHDK, eg via Lua, can force the Canon side into Manual Focus mode, ie rather having to manually do this.

Basically, I want the camera and a script I'm using to always be in MF and for the Canon focus scale to show.
« Last Edit: 20 / January / 2020, 02:38:37 by pigeonhill »

Re: Canon MF
« Reply #1 on: 20 / January / 2020, 03:38:33 »
set_mf( ) ?

Although IIRC the way the Canon firmware and UI responds to this varies a bit on different camera models.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Canon MF
« Reply #2 on: 20 / January / 2020, 03:56:17 »

@waterwingz


Sorry didn't make myself clear enough.


What I'm trying to do is force the Canon side, via, say, a Lua start script, to always put the camera in MF and show the focus scale and enable the focus control. That is without any Canon button pushing from me ;-)


But as you hint, maybe this is not generically doable, or even doable, full stop.


Cheers


Garry

*

Offline reyalp

  • ******
  • 14121
Re: Canon MF
« Reply #3 on: 20 / January / 2020, 04:26:33 »
What I'm trying to do is force the Canon side, via, say, a Lua start script, to always put the camera in MF and show the focus scale and enable the focus control. That is without any Canon button pushing from me ;-)
I'm not aware of a way to do this that doesn't involve sending key presses. You can send key presses from script, but it's fragile the keys vary between cameras. The following enters the MF UI for me on g7x
Code: [Select]
click'left'
while get_prop(require'propcase'.REAL_FOCUS_MODE) ~= 4 do click'right' sleep(100) end
click'up'
The sleep is required for the propcase to update, I didn't try other values aside from no sleep which got stuck in a loop.
Don't forget what the H stands for.


Re: Canon MF
« Reply #4 on: 20 / January / 2020, 06:37:26 »

@reyalp


Yes great idea, and I'll introduce this flexibility for the user, ie to add to the script (if they wish), specific to their cam  ;)


Cheers


Garry
« Last Edit: 20 / January / 2020, 07:29:25 by pigeonhill »

Re: Canon MF
« Reply #5 on: 20 / January / 2020, 07:34:28 »

@reyalp


Sorry to be a pain, I forgot to ask.


Where could I find a list of the string names of the propcases?

Found it  :)
« Last Edit: 20 / January / 2020, 08:41:04 by pigeonhill »

*

Offline reyalp

  • ******
  • 14121
Re: Canon MF
« Reply #6 on: 20 / January / 2020, 16:12:51 »
A few other notes:
* I don't think there's a way to detect from script if the camera supports Canon native MF
* Most modern cameras use left as the focus mode button. Early ones (digic 2, maybe 3?) used down. Some models may have a dedicated button.
* Another way to get into the MF UI on cameras with Canon native MF is to half press and click the focus mode button. This will go into AF lock on cameras without. It will turn off MF if it's already on.

Regarding propcases, you can look in the propsetN.lua files in CHDK/LUALIB/GEN or the corresponding propset.h files in the CHDK include directory http://subversion.assembla.com/svn/chdk/trunk/include/.

Note that some propcases are not present in every propcase. Most of the important ones are.
Don't forget what the H stands for.

Re: Canon MF
« Reply #7 on: 20 / January / 2020, 17:26:13 »
@reyalp

Thanks for the additional info. On reflection I decided to not 'push' the camera into MF mode. The user of my new script (DOFIC) will need to do this manually.
Cheers
Garry
PS One thing I continue to see that's 'wrong' is that at INF, CHDK reports the near DOF as INF. It should be H/2, of course. I have to correct for this in my script, as use the CHDK DoFs ;-)


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal