Author Topic: 7d stack focus  (Read 3497 times)

reisew

  • New to the forum
  • *
  • Posts: 4
7d stack focus
« on: May 03, 2013, 06:54:15 PM »
Hi guys,
nice job you are doing!
Is there a way to speed up stack focus operation ? some specific settings ?
And/or is a PicoC script possible to make pictures from current focus point for example next 10 focus steps ?
thanks,
reisew
7d ML v.2.3 :: Canon EF 24-105mm f/4 L : Canon EF 17-40mm f/4 L

Francis

  • Hero Member
  • *****
  • Posts: 818
Re: 7d stack focus
« Reply #1 on: May 04, 2013, 06:45:41 PM »
You definitely can script that.

reisew

  • New to the forum
  • *
  • Posts: 4
Re: 7d stack focus
« Reply #2 on: May 05, 2013, 10:52:52 AM »
ok, I'll give it a try.
What websites do you suggest to get familiary with the PicoC ?
thanks,
reisew
7d ML v.2.3 :: Canon EF 24-105mm f/4 L : Canon EF 17-40mm f/4 L

jbuy41

  • Freshman
  • **
  • Posts: 94
Re: 7d stack focus
« Reply #3 on: May 05, 2013, 09:31:15 PM »
Have a 550.  Please let me know if you have any luck.  Don't know scripting but willing to try.

Always have had problems with stack focus. 

Francis

  • Hero Member
  • *****
  • Posts: 818
Re: 7d stack focus
« Reply #4 on: May 06, 2013, 05:55:10 PM »
Read about loops in C and read the API thread on the script writing board. For what you want you really only need 1 'for' loop. Look at the sample scripts.

Code: [Select]
/*
 @title Focus stack
 */

wait_pic(); //wait for you to press the shutter to start

for (int i = 0; i < 10; i++) //repeat the stuff in brackets below 10 times
{

focus(1); //moves focus 1 step. can also be a negative
takepic(); //takes a pic duh
//sleep(.5); //wait .5s before starting the loop over

}

You would have to be in Liveview with autofocus enabled to use this.

There is also
Code: [Select]
focus_setup(int stepsize, int delay, int wait);  // see Focus -> Focus Settings menuto set all those specific settings in the script if you like. You would call it by adding focus_setup(1,2,3); for example, before the loop.

You might have a problem with the script trying to run faster than the camera can take the pics and move focus. If that is the case and you are missing shots then remove the // in front of the '//sleep...' to give it some more time to clear buffer and move focus.

Scripts are not going to really speed up the picture taking part of the process, just maybe the setup.

reisew

  • New to the forum
  • *
  • Posts: 4
Re: 7d stack focus
« Reply #5 on: May 19, 2013, 04:23:25 PM »
Hi Francis,
thanks for the post and sorry for delay, but I was too busy the last weeks.

Do you know if I will damage my lens, if I move focus to the end and than start the script which for example move 10 steps forward (what than is mechanically impossible) ?

Or is the lens electronic or camera electronic/software avoiding that ?
7d ML v.2.3 :: Canon EF 24-105mm f/4 L : Canon EF 17-40mm f/4 L

reisew

  • New to the forum
  • *
  • Posts: 4
Re: 7d stack focus
« Reply #6 on: May 19, 2013, 05:52:56 PM »
I need to wait anyway until the 7d release supports scripts ...
Or are the current nightly builds supporting 7d ? filename sounds like not ...  :-\
7d ML v.2.3 :: Canon EF 24-105mm f/4 L : Canon EF 17-40mm f/4 L