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:
Roy Nieterau 2023-03-31 17:08:58 +02:00 committed by GitHub
parent 1967ab34fb
commit 74f73969ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 5 deletions

View file

@ -116,7 +116,6 @@ class ExtractPlayblast(publish.Extractor):
"frameStart": start,
"frameEnd": end,
"fps": fps,
"preview": True,
"tags": tags,
"camera_name": camera
}

View file

@ -241,7 +241,6 @@ class ExtractPlayblast(publish.Extractor):
"frameStart": start,
"frameEnd": end,
"fps": fps,
"preview": True,
"tags": tags,
"camera_name": camera_node_name
}

View file

@ -129,7 +129,6 @@ class ExtractReview(publish.Extractor):
"frameStart": 1,
"frameEnd": no_of_frames,
"fps": fps,
"preview": True,
"tags": self.mov_options['tags']
})

View file

@ -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")

View file

@ -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")