nuke: securing plugin is loading only sequence representation

This commit is contained in:
Jakub Jezek 2021-09-21 14:41:43 +02:00
parent 454fbca065
commit 38bc581b57
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -76,6 +76,8 @@ class LoadSequence(api.Loader):
file = file.replace("\\", "/")
repr_cont = context["representation"]["context"]
assert repr_cont.get("frame"), "Representation is not sequence"
if "#" not in file:
frame = repr_cont.get("frame")
if frame:
@ -170,6 +172,7 @@ class LoadSequence(api.Loader):
assert read_node.Class() == "Read", "Must be Read"
repr_cont = representation["context"]
assert repr_cont.get("frame"), "Representation is not sequence"
file = api.get_representation_path(representation)