mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
nuke: securing plugin is loading only sequence representation
This commit is contained in:
parent
454fbca065
commit
38bc581b57
1 changed files with 3 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ class LoadSequence(api.Loader):
|
||||||
file = file.replace("\\", "/")
|
file = file.replace("\\", "/")
|
||||||
|
|
||||||
repr_cont = context["representation"]["context"]
|
repr_cont = context["representation"]["context"]
|
||||||
|
assert repr_cont.get("frame"), "Representation is not sequence"
|
||||||
|
|
||||||
if "#" not in file:
|
if "#" not in file:
|
||||||
frame = repr_cont.get("frame")
|
frame = repr_cont.get("frame")
|
||||||
if frame:
|
if frame:
|
||||||
|
|
@ -170,6 +172,7 @@ class LoadSequence(api.Loader):
|
||||||
assert read_node.Class() == "Read", "Must be Read"
|
assert read_node.Class() == "Read", "Must be Read"
|
||||||
|
|
||||||
repr_cont = representation["context"]
|
repr_cont = representation["context"]
|
||||||
|
assert repr_cont.get("frame"), "Representation is not sequence"
|
||||||
|
|
||||||
file = api.get_representation_path(representation)
|
file = api.get_representation_path(representation)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue