Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - laniik

#1
Scripting Q&A / Basic Focus Question
November 20, 2017, 08:02:18 PM
Hi, I am trying to move the focus from front to back. This is my current code:


    while lens.focus(-1) do end

    printf("Focus distance: %s\n",  lens.focus_distance)
    local lens_max = lens.focus_distance
   
    while lens.focus(1) do end
    printf("Focus distance: %s\n",  lens.focus_distance)
    local lens_min = lens.focus_distance


But, I can see in the live mode that the focus is fighting against something else, maybe the autofocus? So it never actually ends, it goes into an infinite look where the focus moves one way for .5 seconds and then moves the other.

Any tips? Thanks!
#2
General Development / Phase Detection
October 16, 2012, 03:11:24 PM
Hi, I had a quick question about the library. 

Does anyone know whether is it possible to read out the information from the phase-detection autofocus sensors?

For example, could I press the shutter half-way, read the values, and then make my own focus recommendations based on these readings?

Thanks,