Write custom metadata to EXR

Hi,

Is it at all possible to write metadata to EXR files when rendering these out of V-Ray for Maya?

This is the Max forum, but yes, you can do that - click on the “Image Format Options” button; in the OpenEXR options there is a field “Extra Attributes”.

Best regards,
Vlado

Oh, sorry. Maybe you can move the thread…

So that’s what that input box is for!
What is the syntax like when entering data into that textbox?
I was quickly trying to find syntax info over at spot3d but couldn’t find any info on it.

You can use the following tag:
fake=;user=

Where the “Fake” command is used to import the module.
Probably an error will appear, but it has to be ignored.

Not sure what Tashko is talking about, but you can see more info here:

Best regards,
Vlado

I don’t know if I’m doing something wrong here.. I can’t fetch anything in Nuke which has been put into the extra attributes textbox.

I’m using a pretty recent nightly of V-Ray for Maya 2012 64-bit and Nuke 7.0v6.


I think you have to write :
vrayversion=2.2;comment=hello

not :
vrayversion=2.2,comment=hello

Ahhh. It works (with semicolon). Great!

How do I set this via MEL or Python?

I’m answering myself on that one:


import maya.cmds as cmds
cmds.setAttr("vraySettings.imgOpt_exr_attributes", "vrayversion=2.2;hello=True;name=Rod Stewart", type="string")

Thanks guys :slight_smile:

Good to know that it’s working :slight_smile:

Best regards,
Vlado