Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ def useSourceOCIO(self, source, nodeType, defaultSetting=""):
srcPipeline = groupMemberOfType(commands.nodeGroup(source), pipeSlot)
ocioNode = groupMemberOfType(srcPipeline, nodeType)
if ocioNode is not None and self.readingSession:
if os.getenv("OCIO") is None:
return
for pNode in commands.nodesInGroup(srcPipeline):
if commands.nodeType(pNode).startswith("OCIO"):
commands.ocioUpdateConfig(pNode)
Expand Down Expand Up @@ -331,6 +333,9 @@ def useSourceOCIO(self, source, nodeType, defaultSetting=""):
if pipeline == DEFAULT_PIPE[pipeSlot]:
return

if os.getenv("OCIO") is None:
return

print(("INFO: using %s node for %s %s" % (nodeType, source, pipeSlot)))

commands.setStringProperty(srcPipeline + ".pipeline.nodes", pipeline, True)
Expand Down Expand Up @@ -404,6 +409,9 @@ def useDisplayOCIO(self, group):
if pipeline == DEFAULT_PIPE[groupName]:
return

if os.getenv("OCIO") is None:
return

device = commands.getStringProperty(group + ".device.name")[0]
print(("INFO: using OCIODisplay for display: %s" % device))

Expand Down
Loading