mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Remove "preview" data from representation (#4759)
* Remove "preview" data from representation * pop "preview" from component in standalone publisher --------- Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com> Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
1967ab34fb
commit
74f73969ad
5 changed files with 3 additions and 5 deletions
|
|
@ -116,7 +116,6 @@ class ExtractPlayblast(publish.Extractor):
|
|||
"frameStart": start,
|
||||
"frameEnd": end,
|
||||
"fps": fps,
|
||||
"preview": True,
|
||||
"tags": tags,
|
||||
"camera_name": camera
|
||||
}
|
||||
|
|
|
|||
|
|
@ -241,7 +241,6 @@ class ExtractPlayblast(publish.Extractor):
|
|||
"frameStart": start,
|
||||
"frameEnd": end,
|
||||
"fps": fps,
|
||||
"preview": True,
|
||||
"tags": tags,
|
||||
"camera_name": camera_node_name
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,6 @@ class ExtractReview(publish.Extractor):
|
|||
"frameStart": 1,
|
||||
"frameEnd": no_of_frames,
|
||||
"fps": fps,
|
||||
"preview": True,
|
||||
"tags": self.mov_options['tags']
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,9 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
|
|||
if ext.startswith("."):
|
||||
component["ext"] = ext[1:]
|
||||
|
||||
if component["preview"]:
|
||||
# Remove 'preview' key from representation data
|
||||
preview = component.pop("preview")
|
||||
if preview:
|
||||
instance.data["families"].append("review")
|
||||
component["tags"] = ["review"]
|
||||
self.log.debug("Adding review family")
|
||||
|
|
|
|||
|
|
@ -414,7 +414,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
})
|
||||
|
||||
# Force to pop these key if are in new repre
|
||||
new_repre.pop("preview", None)
|
||||
new_repre.pop("thumbnail", None)
|
||||
if "clean_name" in new_repre.get("tags", []):
|
||||
new_repre.pop("outputName")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue