Update openpype/hosts/nuke/plugins/load/load_clip.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2023-02-14 12:18:00 +01:00 committed by GitHub
parent 6fbf7be560
commit 6653df6369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,13 +222,12 @@ class LoadClip(plugin.NukeLoader):
representation = deepcopy(representation)
context = representation["context"]
template = representation["data"]["template"]
frame = context["frame"]
hashed_frame = "#" * len(str(frame))
if (
"{originalBasename}" in template
and "frame" in context
):
frame = context["frame"]
hashed_frame = "#" * len(str(frame))
origin_basename = context["originalBasename"]
context["originalBasename"] = origin_basename.replace(
frame, hashed_frame