Created
April 16, 2015 18:45
-
-
Save whoiscarlo/61c74952064add74ad63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import OpenImageIO | |
exr_filPath = 'x:/project/testfolder/testImage.exr' | |
def edit_exr( exr_filPath): | |
#renames Channels | |
newimg = OpenImageIO.ImageBuf(exr_filPath) | |
#adds metadata | |
newimg.specmod().attribute("subRound","r2") | |
newimg.specmod().attribute("nukeRef","0000") | |
#writes image | |
newimg.write(exr_filPath) |
metadataClicked = Signal.emit(self.write_exr)
def write_exr(self):
#this will execute the command when the metadata button is pressed
for i in fileList:
if i.type() == ".exr"
self.exr_edit()
else:
pass
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
*newimg.specmod().attribute("cgiRef","f1")
remove "newimg.specmod().attribute("nukeRef","0000")"