Auto vary DOF with focal distance

Started by engardeknave, October 16, 2013, 09:09:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

engardeknave

I often want as shallow a depth of field as possible while still getting the subject(s) completely in focus. In order to accomplish this I'm constantly changing to a smaller aperture for closer shots and a larger one when I'm farther away. Sometimes I forget to do this, or the miss a shot while making the change. It would be great if the camera did this automatically.

I wanted to try this with scripts, but I don't think they're working now.

Marsu42

Quote from: engardeknave on October 16, 2013, 09:09:12 AMIt would be great if the camera did this automatically.

Outside lv mode ml cannot read the focus distance :-\ ... so if someone adds this it'd only work in live view.

engardeknave

I planned to use it in LV anyway so that would work for me.

engardeknave

Are scripts completely nonfunctional right now? Or just turned off when compiled? I probably just need functions to get the focal distance, set the aperture, and watch for half_shutter. Can anyone help me?

a1ex

Yeah, unfortunately.

To bring back the scripting engine, one can:

a) compile PicoC as a module (fairly easy for an experienced C developer)
b) fix floating point support in TCC (hardcore)
c) compile Lua as a module (difficulty between a and b, but lots of work needed to port the API and such)