mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removing project entity redundancy
This commit is contained in:
parent
97fd130971
commit
4ae8e7fa77
1 changed files with 7 additions and 5 deletions
|
|
@ -28,10 +28,12 @@ class CollectSequenceFrameData(pyblish.api.InstancePlugin):
|
|||
|
||||
def get_frame_data_from_repre_sequence(self, instance):
|
||||
repres = instance.data.get("representations")
|
||||
parent_entity = (
|
||||
instance.data.get("assetEntity")
|
||||
or instance.context.data["projectEntity"]
|
||||
)
|
||||
parent_entity = instance.data.get("assetEntity")
|
||||
|
||||
if not parent_entity:
|
||||
self.log.warning("Cannot find parent entity data")
|
||||
return
|
||||
|
||||
if repres:
|
||||
first_repre = repres[0]
|
||||
if "ext" not in first_repre:
|
||||
|
|
@ -40,7 +42,7 @@ class CollectSequenceFrameData(pyblish.api.InstancePlugin):
|
|||
return
|
||||
|
||||
files = first_repre["files"]
|
||||
collections, remainder = clique.assemble(files)
|
||||
collections, _ = clique.assemble(files)
|
||||
if not collections:
|
||||
# No sequences detected and we can't retrieve
|
||||
# frame range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue