Jump to content

adding metadata to exr


Recommended Posts

Hey there,

first odforce post and of course a question.

i am currently looking for an option to add costum meta data to my render output (exr file).

to be more specifiy, i want to save the focal length of my render cam  to the meta data of my exr to read them later on in nuke. all ready found a way to put it in the comments, but would be cleaner to have it as costume data. i even found the vm_image_exr_attributes, but it seems like its not working (or i am using it wrong). would be great to get some help.

 

cheers

Link to comment
Share on other sites

The parameter can be a little fussy when using expressions and will silently fail if something is off a little.  For example using backticks doesn't seem to work.  The file I attached has three ways of dynamically setting attributes.  Two seem to work and one doesn't.

exr_attrs.hip

Edited by jonp
Link to comment
Share on other sites

  • 2 weeks later...

sorry, jon, was to busy to answer you.
your script works perfect and excactly what i wanted. had a similiar approach but missed something, i guess.

the only odd thing is, that it only works in houdini 14 and not in any houdini 15 version, maybe some kind of bug

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Hey,

I just tested the three approaches against 16.5 and every one is working.

Just be cautious if using the python version. It fails quite silently, doesn't raise an error if an attribute is missing or a node is not found. Due to the raised error there won't be a return value and no meta data will be writen into the exr.

To avoid that, the easiest solution would be a try..except statement arounf every attribute/node query.

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...