-
Notifications
You must be signed in to change notification settings - Fork 0
/
newTestMovOiio.py
34 lines (28 loc) · 905 Bytes
/
newTestMovOiio.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python
# coding:utf-8
""":mod: newTestMovOiio
===================================
.. module:: moduleName
:platform: Unix
:synopsis: module idea
:author: duda
:date: 2021.01
"""
import OpenImageIO as oiio
mov = '/s/prodanim/ta/_sandbox/duda/render/granMaHouseInt/hallwayAA/tst-arnoldStandin-beauty-left.0180.exr'
listFrame = "1"
buf = oiio.ImageBuf(mov)
buf.clear()
buf = oiio.ImageBuf(mov)
nbImages = buf.nsubimages
mylist = listFrame
#buf.read(1200)
buf.write('/s/prodanim/ta/_sandbox/duda/acescg_testoiio.100.jpg',str(oiio.UINT8))
print buf.geterror()
buf.clear()
# for i in mylist:
# buf = oiio.ImageBuf(mov)
# buf.read(1200)
# #oiio.ImageBufAlgo.colorconvert(buf,buf,'srgb8','acescg')
# print('/s/prodanim/ta/_sandbox/duda/acescg_testoiio.'+str(i)+'.exr')
# buf.write('/s/prodanim/ta/_sandbox/duda/acescg_testoiio.'+str(i)+'.exr',str(oiio.HALF))