mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
fix(nuke): fallback approach of defining colorspace
This commit is contained in:
parent
877b9e8885
commit
94ce045fec
1 changed files with 13 additions and 6 deletions
|
|
@ -1627,15 +1627,22 @@ class ExporterReviewMov(ExporterReview):
|
|||
self.log.debug("ViewProcess... `{}`".format(self._temp_nodes))
|
||||
|
||||
if not self.viewer_lut_raw:
|
||||
colorspace = self.bake_colorspace_main \
|
||||
or self.bake_colorspace_fallback
|
||||
colorspaces = [
|
||||
self.bake_colorspace_main, self.bake_colorspace_fallback
|
||||
]
|
||||
|
||||
self.log.debug("_ colorspace... `{}`".format(colorspace))
|
||||
|
||||
if colorspace:
|
||||
if any(colorspaces):
|
||||
# OCIOColorSpace with controled output
|
||||
dag_node = nuke.createNode("OCIOColorSpace")
|
||||
dag_node["out_colorspace"].setValue(str(colorspace))
|
||||
for c in colorspaces:
|
||||
test = dag_node["out_colorspace"].setValue(str(c))
|
||||
if test:
|
||||
self.log.info(
|
||||
"Baking in colorspace... `{}`".format(c))
|
||||
break
|
||||
|
||||
if not test:
|
||||
dag_node = nuke.createNode("OCIODisplay")
|
||||
else:
|
||||
# OCIODisplay
|
||||
dag_node = nuke.createNode("OCIODisplay")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue