[DONE] Where to hook code that should only execute once on boot?

Started by Marsu42, April 29, 2014, 12:26:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marsu42

I'd like to add a small function that resets the af point to center if I turn on the camera. Where do I hook this function w/o executing it all the time in shoot task as I usually do? Thanks!

dmilligan

module init only runs once, or you could make a task that doesn't loop and just exits, or put it in shoot task before the loop starts

Marsu42

Quote from: dmilligan on April 29, 2014, 01:01:26 PM
module init only runs once, or you could make a task that doesn't loop and just exits, or put it in shoot task before the loop starts

Oh my, good point, I completely forgot I can put custom code there. Thanks!