PDA

View Full Version : Set FocalLength vs ZoomFactor



AbstractTech3D
10-13-2012, 03:42 AM
Hello

Have been trying to write a script that sets the camera focal length. But haven't been able to find a function that will do that directly. ZoomFactor() can be used to set Zoom Factor - which of course also changes focal length. But FocalLength() appears not to be valid.

Not sure about the relationship between Focal Length and Zoom Factor either. The 'Frame' parameter is also involved.

Can anyone shed some light on this for me, please?

Thanks!

Lightwolf
10-13-2012, 04:15 AM
Have a look at the DOFToy sample in the SDK (samle/Layout/Generic/doftoy) - func.c contains a bunch of C functions that convert from and to various parameters.

Cheers,
Mike

AbstractTech3D
10-14-2012, 10:14 PM
Found the info I needed in there. Thanks Mike!