mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
hound
This commit is contained in:
parent
02a1602e30
commit
e6db06c576
2 changed files with 8 additions and 4 deletions
|
|
@ -72,8 +72,10 @@ class CollectRender(pyblish.api.InstancePlugin):
|
|||
|
||||
if int(get_max_version()) >= 2024:
|
||||
colorspace_mgr = rt.ColorPipelineMgr # noqa
|
||||
display = next((display for display in colorspace_mgr.GetDisplayList()))
|
||||
view_transform = next((view for view in colorspace_mgr.GetViewList(display)))
|
||||
display = next(
|
||||
(display for display in colorspace_mgr.GetDisplayList()))
|
||||
view_transform = next(
|
||||
(view for view in colorspace_mgr.GetViewList(display)))
|
||||
instance.data["colorspaceConfig"] = colorspace_mgr.OCIOConfigPath
|
||||
instance.data["colorspaceDisplay"] = display
|
||||
instance.data["colorspaceView"] = view_transform
|
||||
|
|
|
|||
|
|
@ -47,8 +47,10 @@ class CollectReview(pyblish.api.InstancePlugin,
|
|||
|
||||
if int(get_max_version()) >= 2024:
|
||||
colorspace_mgr = rt.ColorPipelineMgr # noqa
|
||||
display = next((display for display in colorspace_mgr.GetDisplayList()))
|
||||
view_transform = next((view for view in colorspace_mgr.GetViewList(display)))
|
||||
display = next(
|
||||
(display for display in colorspace_mgr.GetDisplayList()))
|
||||
view_transform = next(
|
||||
(view for view in colorspace_mgr.GetViewList(display)))
|
||||
instance.data["colorspaceConfig"] = colorspace_mgr.OCIOConfigPath
|
||||
instance.data["colorspaceDisplay"] = display
|
||||
instance.data["colorspaceView"] = view_transform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue