mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
hound
This commit is contained in:
parent
b06b45dbc1
commit
620269c2fc
1 changed files with 3 additions and 4 deletions
|
|
@ -39,7 +39,6 @@ class LoadOcioLookNodes(load.LoaderPlugin):
|
||||||
# json file variables
|
# json file variables
|
||||||
schema_version = 1
|
schema_version = 1
|
||||||
|
|
||||||
|
|
||||||
def load(self, context, name, namespace, data):
|
def load(self, context, name, namespace, data):
|
||||||
"""
|
"""
|
||||||
Loading function to get the soft effects to particular read node
|
Loading function to get the soft effects to particular read node
|
||||||
|
|
@ -66,10 +65,10 @@ class LoadOcioLookNodes(load.LoaderPlugin):
|
||||||
group_node = self._create_group_node(
|
group_node = self._create_group_node(
|
||||||
object_name, filepath, json_f["data"])
|
object_name, filepath, json_f["data"])
|
||||||
|
|
||||||
|
|
||||||
self._node_version_color(context["version"], group_node)
|
self._node_version_color(context["version"], group_node)
|
||||||
|
|
||||||
self.log.info("Loaded lut setup: `{}`".format(group_node["name"].value()))
|
self.log.info(
|
||||||
|
"Loaded lut setup: `{}`".format(group_node["name"].value()))
|
||||||
|
|
||||||
return containerise(
|
return containerise(
|
||||||
node=group_node,
|
node=group_node,
|
||||||
|
|
@ -244,7 +243,6 @@ class LoadOcioLookNodes(load.LoaderPlugin):
|
||||||
self.log.info("Updated lut setup: `{}`".format(
|
self.log.info("Updated lut setup: `{}`".format(
|
||||||
group_node["name"].value()))
|
group_node["name"].value()))
|
||||||
|
|
||||||
|
|
||||||
def _load_json_data(self, filepath):
|
def _load_json_data(self, filepath):
|
||||||
# getting data from json file with unicode conversion
|
# getting data from json file with unicode conversion
|
||||||
with open(filepath, "r") as _file:
|
with open(filepath, "r") as _file:
|
||||||
|
|
@ -304,6 +302,7 @@ class LoadOcioLookNodes(load.LoaderPlugin):
|
||||||
color_value = self.old_node_color
|
color_value = self.old_node_color
|
||||||
node["tile_color"].setValue(int(color_value, 16))
|
node["tile_color"].setValue(int(color_value, 16))
|
||||||
|
|
||||||
|
|
||||||
def _colorspace_name_by_type(colorspace_data):
|
def _colorspace_name_by_type(colorspace_data):
|
||||||
"""
|
"""
|
||||||
Returns colorspace name by type
|
Returns colorspace name by type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue