Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usdview: Error with Color Management when choosing displays #2254

Closed
mdecaria opened this issue Feb 8, 2023 · 1 comment
Closed

usdview: Error with Color Management when choosing displays #2254

mdecaria opened this issue Feb 8, 2023 · 1 comment

Comments

@mdecaria
Copy link

mdecaria commented Feb 8, 2023

Description of Issue

When using usdview if a Display space is chosen with the new OCIO Config menu, it fails to switch and a python traceback error appears

Steps to Reproduce

  1. Ensure OCIO environment is set to a config that contains Displays
  2. Open USDView and switch Color Management to OCIO
  3. Choose one of the displays listed up the Displays section.
  4. See following traceback in terminal:
Traceback (most recent call last):
  File "/path/to/usd/usdView/23.02/lib/python/pxr/Usdviewq/appController.py", line 1752, in setOcioConfig
    if config.hasattr('getDisplayViewColorSpaceName'):
AttributeError: 'PyOpenColorIO.Config' object has no attribute 'hasattr'

hasattr is a python built-in - I would expect the line to be if hasattr(config, "getDisplayViewColorSpaceName"):

Package Versions

23.02

@tallytalwar
Copy link
Contributor

Filed as internal issue #USD-7988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants