From aea7d538095a794e44ce50d6e9074b7d6715e2f4 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Mon, 21 Jun 2021 17:36:51 +0200 Subject: [PATCH] #636 - use new api function --- .../hosts/photoshop/plugins/load/load_image_from_sequence.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/photoshop/plugins/load/load_image_from_sequence.py b/openpype/hosts/photoshop/plugins/load/load_image_from_sequence.py index 09525d2791..8704627b12 100644 --- a/openpype/hosts/photoshop/plugins/load/load_image_from_sequence.py +++ b/openpype/hosts/photoshop/plugins/load/load_image_from_sequence.py @@ -2,8 +2,10 @@ import os from avalon import api from avalon import photoshop +from avalon.pipeline import get_representation_path_from_context from avalon.vendor import qargparse +from openpype.lib import Anatomy from openpype.hosts.photoshop.plugins.lib import get_unique_layer_name stub = photoshop.stub() @@ -64,7 +66,7 @@ class ImageFromSequenceLoader(api.Loader): """ files = [] for context in repre_contexts: - fname = ImageFromSequenceLoader.filepath_from_context(context) + fname = get_representation_path_from_context(context) _, file_extension = os.path.splitext(fname) for file_name in os.listdir(os.path.dirname(fname)): @@ -93,3 +95,4 @@ class ImageFromSequenceLoader(api.Loader): def remove(self, container): """No update possible, not containerized.""" pass +