Skip to content

Commit

Permalink
[testusdview] Add OCIO test case
Browse files Browse the repository at this point in the history
... that uses a different view.

See PixarAnimationStudios#1491

(Internal change: 2194613)
  • Loading branch information
rajabala authored and lkerley committed Jan 7, 2022
1 parent c40287e commit 4a1127f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ def _useOCIO(appController):
appController._dataModel.viewSettings.showHUD = False
# The first view ("Gamma 2.2" will be the default view)
appController._takeShot("colorCorrectionOCIO_g22.png")
# XXX Add support for testing color spaces and looks.
appController._dataModel.viewSettings.setOCIOConfig(
colorSpace = None, display = "rec709g22", view = "Linear")
appController._takeShot("colorCorrectionOCIO_linear.png")


def _useFallback(appController):
appController._dataModel.viewSettings.colorCorrectionMode = ColorCorrectionModes.SRGB
Expand Down

0 comments on commit 4a1127f

Please sign in to comment.