Jump to content

parsing ifd files


Recommended Posts

You need to add ray_property camera focus, ray_property camera focal and ray_property camera fstop properties into the ifd file.

I attached python script example that do this with binary ifd.
Just run it as:

dofOn.py -i inputFilePath.0001.idf -f 4.4847164154, -l 0.05, -s 0.227884607693

-i = ifd file path

-f = focus distance

-l = focal length

-s = fstop

For ifd file in asci format it's even simplier.


Just a little warning, this script replaces original file, so to be safe, do backup or change replaceFile() function.
 

dofOn.zip

Edited by pezetko
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...