mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
feat(nks): collect review identify if mediaSource needs to be trimed
This commit is contained in:
parent
89e5e72059
commit
cf01f44726
1 changed files with 13 additions and 0 deletions
|
|
@ -100,6 +100,19 @@ class CollectReviews(api.InstancePlugin):
|
|||
"name": "preview",
|
||||
"ext": ext
|
||||
}
|
||||
|
||||
# if int(rev_inst.data.get("sourceIn")) >
|
||||
mediaDuration = instance.data.get("mediaDuration")
|
||||
clipDuration = instance.data.get("clipDuration")
|
||||
|
||||
if mediaDuration > clipDuration:
|
||||
self.log.debug("Media duration higher: {}".format(
|
||||
(mediaDuration - clipDuration)))
|
||||
# representation.update({
|
||||
# "frameStart": instance.data.get("sourceInH"),
|
||||
# "frameEnd": instance.data.get("sourceOutH")
|
||||
# })
|
||||
|
||||
instance.data["representations"].append(representation)
|
||||
|
||||
self.log.debug("Added representation: {}".format(representation))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue