From 6177281a7fca6f1eba796a03078ac60b444ca5f9 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Tue, 12 Oct 2021 17:01:19 +0200 Subject: [PATCH] Nuke: improving code of get_representation on loadClip --- openpype/hosts/nuke/plugins/load/load_clip.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/openpype/hosts/nuke/plugins/load/load_clip.py b/openpype/hosts/nuke/plugins/load/load_clip.py index 532d3dba2a..97b91b53a3 100644 --- a/openpype/hosts/nuke/plugins/load/load_clip.py +++ b/openpype/hosts/nuke/plugins/load/load_clip.py @@ -23,10 +23,13 @@ class LoadClip(api.Loader): "prerender", "review" ] - representations = ([ - "exr", "dpx", "mov", - "review", "mp4"] - + get_review_presets_config()) + representations = [ + "exr", + "dpx", + "mov", + "review", + "mp4" + ] label = "Load Clip" order = -20 @@ -52,7 +55,11 @@ class LoadClip(api.Loader): @classmethod def get_representations(cls): - return cls.representations + cls._representations + return ( + cls.representations + + cls._representations + + get_review_presets_config() + ) def load(self, context, name, namespace, options): from avalon.nuke import (