# Write metadata in exr

**URL:** <https://forum.logik.tv/t/write-metadata-in-exr/4648>\
**Category:** Flame Questions\
**Created:** [December 14, 2021, 12:09pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648 "2021-12-14T12:09:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [December 14, 2021, 12:09pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/1 "2021-12-14T12:09:51Z")

</div>

Anyone know how to set the metadata “Owner” when exporting .exr seq?  
I need to change it to a specific name.

The request comes from Resolve that need it embedded in the file.  
ps: I can’t use directory structure to pass on the Information on this project

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [December 14, 2021, 8:06pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/2 "2021-12-14T20:06:08Z")

</div>

I’m about 90% sure flame can’t do this. There may be some post-export app that can, but Flame’s not great at putting metadata back in and there are a handful of feature requests about the issue.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [December 14, 2021, 9:14pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/3 "2021-12-14T21:14:41Z")

</div>

If anybody would know, it might be @Josh_Laurence

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [December 14, 2021, 9:28pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/4 "2021-12-14T21:28:55Z")

</div>

Isn’t this something you would do with a command line after export? Like chown?

---

<div class="post-metadata">

**Author:** ![ALan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ALan](https://forum.logik.tv/u/ALan)\
**Post date:** [December 14, 2021, 9:29pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/5 "2021-12-14T21:29:23Z")

</div>

When we need to have specific EXR layer naming or other MetaData, we run the exports thru Nuke as a wrapper. It is shameful that Flame can not do this.

---

<div class="post-metadata">

**Author:** ![Josh\_Laurence](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/josh_laurence/32/1243_2.png) [@Josh\_Laurence](https://forum.logik.tv/u/Josh_Laurence)\
**Post date:** [December 14, 2021, 10:42pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/6 "2021-12-14T22:42:11Z")

</div>

Sorry, haven’t been asked for this yet, and if @ALan and @andy_dill say it doesn’t work yet, I’ll take that for gospel. Maybe @fredwarren has a handle on the horizon for this feature?

---

<div class="post-metadata">

**Author:** ![ALan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ALan](https://forum.logik.tv/u/ALan)\
**Post date:** [December 14, 2021, 10:52pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/7 "2021-12-14T22:52:44Z")

</div>

This is Stephane Labrie territory.

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [December 15, 2021, 9:13am UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/8 "2021-12-15T09:13:54Z")

</div>

Yep, right know i’m exporting exr, change metadata in nuke and exporting the sequence again.  
It’s not too bad but is not always easy to free up a nuke licenses each time i have to export a new version of a shot.  
It would be cool to have some matchbox or a python script to work like _ModifyMetaData_ node and _CopyMetaData_ the node in nuke.  
Should i open a feature request?

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [December 15, 2021, 5:14pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/9 "2021-12-15T17:14:00Z")

</div>

I would recommend OIIO as simple comand line utility to create and change metadata.  
[oiiotool: the OIIO Swiss Army Knife — OpenImageIO 2.4.0 documentation](https://openimageio.readthedocs.io/en/latest/oiiotool.html#oiiotool-commands-that-change-the-current-image-metadata).

If you need to execute a python script after the images render, OIIO comes with Python bindings so once the module is in the python path the code is simple:

```auto
img = ImageBuf ("foo.jpg")
# Add a caption:
img.specmod().attribute ("ImageDescription", "Hawaii vacation")
# Add keywords:
img.specmod().attribute ("keywords", "volcano,lava")
write_image (img, "foo.jpg")

```

[https://openimageio.readthedocs.io/en/latest/pythonbindings.html#](https://openimageio.readthedocs.io/en/latest/pythonbindings.html#)

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [December 16, 2021, 9:38am UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/10 "2021-12-16T09:38:13Z")

</div>

Thank you,  
I’m a real beginner in coding and i don’t know if this question make sense, but could you give me some direction on how to make the bindings available within flame python console?  
I’ve never add new module before and i don’t want to guess with stuff i don’t understand.

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [December 16, 2021, 5:24pm UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/11 "2021-12-16T17:24:47Z")

</div>

Installing OpenImageIO binaries should be straight forward in Linux os OS x using **yum** and **homebrew** respectively.  
Importing the module in the Flame Python API could be trickier if OIIO is compiled against a different version of Python. So probably best to try to run OIIO as a system process from within Python.  
I’ll try to put something together when I get some time.

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [December 17, 2021, 9:10am UTC](https://forum.logik.tv/t/write-metadata-in-exr/4648/12 "2021-12-17T09:10:41Z")

</div>

@milanesa Thank you so much.
