Author Topic: Silent pics and autofocus  (Read 3478 times)

wolf

  • Senior
  • ****
  • Posts: 263
Silent pics and autofocus
« on: February 25, 2013, 09:43:38 PM »
After some experiments with focus() I wonder whether there is already a possibility to focus to a given length.
I tried to write a script for testing and realized that when I trigger a silent pic, the camera tries to autofocus. Triggering [Zoom Out] doesn't work on a 550D.
Is there another way to trigger s-p?

I know the script can't be accurate.

Code: [Select]
void mm_focus(int mm)
{
    int foc_count;
    mm=mm/10;
    D = get_dof();
    if(D->focus_dist>mm)
    {
        while(D->focus_dist>=mm)
        {
            focus(5);
            foc_count++;
            D = get_dof();
        }
        for(int j=0; j<foc_count/2; j++)
            focus(-5);
            foc_count=0;
    }
    else
    {
        while(D->focus_dist<=mm)
        {
            focus(-5);
            foc_count++;
            D = get_dof();
        }
        for(int j=0; j<foc_count/2; j++)
            focus(5);
        foc_count=0;

    }
    focus_old=mm;
}

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Silent pics and autofocus
« Reply #1 on: February 25, 2013, 10:28:36 PM »
If you set AF to back-button, it won't focus.