Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
#636 - use new api function
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Jun 21, 2021
1 parent 852a2f3 commit aea7d53
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

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()
Expand Down Expand Up @@ -64,7 +66,7 @@ def get_options(cls, repre_contexts):
"""
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)):
Expand Down Expand Up @@ -93,3 +95,4 @@ def update(self, container, representation):
def remove(self, container):
"""No update possible, not containerized."""
pass

0 comments on commit aea7d53

Please sign in to comment.