hou.IPRViewer.saveFrame() + OCIO/ACES

   1140   1   1
User Avatar
Member
3 posts
Joined: July 2015
Online
Hi,

i'm using the saveFrame()-method of the hou.IPRViewer class to save JPG-snapshots of the "Render View" to disk. Is there a way to bake in the current ACES-viewer-transform? Or one of the ACES output-transforms (ACES-CG -> Output sRGB)? I'd like the JPGs on disk, when viewed with a standard image viewer, to look like in the renderview? The saveFrame()-method has a "lut" argument, but it doesn't seem to do anything.


cheers,
Moritz.
User Avatar
Member
7 posts
Joined: Nov. 2019
Offline
Hi Moritz,

Try to use it like this:
ipr_viewer = hou.ui.paneTabOfType(hou.paneTabType.IPRViewer)
if not ipr_viewer:
    return ""
conv_lut = os.path.join(
    os.path.dirname(os.getenv("OCIO")),
    "baked",
    "houdini",
    "Rec.709 for ACEScg Houdini.lut",
).replace("\\", "/")
ipr_viewer.saveFrame(path, 0, -1, -1, "C", "C", "*", conv_lut, 1.0, False)

Cheers,
Andriy
  • Quick Links