Crustedink Posted November 16, 2015 Share Posted November 16, 2015 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 Quote Link to comment Share on other sites More sharing options...
jonp Posted November 18, 2015 Share Posted November 18, 2015 (edited) 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 November 18, 2015 by jonp Quote Link to comment Share on other sites More sharing options...
Crustedink Posted December 1, 2015 Author Share Posted December 1, 2015 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 Quote Link to comment Share on other sites More sharing options...
jonp Posted January 9, 2016 Share Posted January 9, 2016 You're right, I just tried it myself and it doesn't work in Houdini 15. Did you file a bug or figure out why this is? Quote Link to comment Share on other sites More sharing options...
Crustedink Posted January 13, 2016 Author Share Posted January 13, 2016 we did, aroud 40 days ago but still no response from side effects Quote Link to comment Share on other sites More sharing options...
pezetko Posted January 14, 2016 Share Posted January 14, 2016 Yes, it's confirmed bug in H15, not solved yet. As workaround I'm setting attributes with exrstdattr via shell/python post-frame script. You can find a little bit older but already compiled version here Quote Link to comment Share on other sites More sharing options...
DominikPott Posted March 25, 2018 Share Posted March 25, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.