Using chdk to memorize focus settings? - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

Using chdk to memorize focus settings?

  • 15 Replies
  • 5652 Views
Using chdk to memorize focus settings?
« on: 27 / February / 2012, 08:42:52 »
Advertisements
My desk faces a window, and I sit here studying for hours. Occasionally a bird flies by, and I'd like to try catching photos of them in flight. (Even if I'm unlikely to get good photos, it gives me a nice distraction). The problem is that the window is just dirty enough that the autofocus tends to focus on the window more than on the birds. Infinity focus works great, but if I set the camera to infinity focus and then set it down for a minute, it loses the focus settings, even with all the power saving options turned off. The amount of time it takes me to set it back to infinity usually means the birds is gone. Is there a way in the chdk to get it to stay on infinity focus for a long time?
My Flickr Page
I use the chdk on my SX230 and SD1100 cameras, and I installed them using a Macbook, currently running 10.6.8.

Re: Using chdk to memorize focus settings?
« Reply #1 on: 27 / February / 2012, 09:53:13 »
Yes, it's to be done, even easy. You need to write a "script" with only one line such as:

Code: (lua) [Select]
set_focus(f)

where instead of 'f' you need to write appropriate value, which sets your camera to infinity. I don't know the correct value for you.

Load this script and set (in script parameters) option called simmilar to "Autostart". Then every time you run camera it'll run this script and set the focus to f.

It's possible, that you'll need to use also af_lock or something. However you have to just experiment, wheter above is enough;)
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Using chdk to memorize focus settings?
« Reply #2 on: 06 / April / 2012, 17:30:50 »
How do I know what to insert instead of "f"? Pease give helpful advices!

Re: Using chdk to memorize focus settings?
« Reply #3 on: 06 / April / 2012, 17:55:41 »
One thing that comes to my mind is to write such script:

Code: (lua) [Select]
x=get_focus()
print(x)

and then do following:
- set focus manually to infinity
- run this script and read its output.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


Re: Using chdk to memorize focus settings?
« Reply #4 on: 06 / April / 2012, 18:08:03 »
Thank you but I do not understand, I set focus manually to infinity using the original camera menu?

Re: Using chdk to memorize focus settings?
« Reply #5 on: 06 / April / 2012, 18:08:52 »
outslider, can you please also post here your intervalometer script so I can copy it to my camera?

Re: Using chdk to memorize focus settings?
« Reply #6 on: 06 / April / 2012, 18:16:06 »
Thank you but I do not understand, I set focus manually to infinity using the original camera menu?

Yes. Why? When you set focus to inf and then run the last script I've posted it'll read the focus value and print it. It'll be the same as 'f' value you needed before.

outslider, can you please also post here your intervalometer script so I can copy it to my camera?

Do you mean this simple intervalometer that I told about in the thread: http://chdk.setepontos.com/index.php?topic=7942.new#new ?

I believe that INTERVAL.BAS or INTERVAL.LUA should do the work.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Using chdk to memorize focus settings?
« Reply #7 on: 06 / April / 2012, 18:27:44 »
Yes, thank you very much for your help. I was really frustrated today when I could not use the chdk properly and also because I could not register on this forum. Now I see the light in the end of the tunnel, because of your help :)

Will try the simple intervalometer and will let you know the result.


Re: Using chdk to memorize focus settings?
« Reply #8 on: 06 / April / 2012, 19:30:01 »
I've used http://chdk.wikia.com/wiki/UBASIC/Scripts:_A_Simple_Intervalometer and it does not help
I still hear that camera is measuring something I do not know what but it is definitely doing it. Also it does not give 1 frame per second because of these measurements. I think it is 1 photo per 2.5-3 sec.
Plz help :)

Re: Using chdk to memorize focus settings?
« Reply #9 on: 06 / April / 2012, 19:38:26 »
By the way if I use not script but just choose Continuous mode from the original camera menu it makes 2-3 photos per second without a problem and without measurings I only hear the shuttter clicking.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal