mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
feat(hiero): rename collect reviews to review
This commit is contained in:
parent
17dab30fb3
commit
9c35bb30fa
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ import re
|
||||||
import clique
|
import clique
|
||||||
|
|
||||||
|
|
||||||
class CollectReviews(api.InstancePlugin):
|
class CollectReview(api.InstancePlugin):
|
||||||
"""Collect review from tags.
|
"""Collect review from tags.
|
||||||
|
|
||||||
Tag is expected to have metadata:
|
Tag is expected to have metadata:
|
||||||
|
|
@ -136,7 +136,7 @@ class CollectReviews(api.InstancePlugin):
|
||||||
media_duration = instance.data.get("mediaDuration")
|
media_duration = instance.data.get("mediaDuration")
|
||||||
clip_duration_h = instance.data.get("clipDurationH")
|
clip_duration_h = instance.data.get("clipDurationH")
|
||||||
|
|
||||||
if media_duration > clip_duration_h and not is_sequence:
|
if media_duration > clip_duration_h:
|
||||||
self.log.debug("Media duration higher: {}".format(
|
self.log.debug("Media duration higher: {}".format(
|
||||||
(media_duration - clip_duration_h)))
|
(media_duration - clip_duration_h)))
|
||||||
representation.update({
|
representation.update({
|
||||||
|
|
@ -144,7 +144,7 @@ class CollectReviews(api.InstancePlugin):
|
||||||
"frameEnd": instance.data.get("sourceOutH"),
|
"frameEnd": instance.data.get("sourceOutH"),
|
||||||
"tags": ["_cut-bigger", "delete"]
|
"tags": ["_cut-bigger", "delete"]
|
||||||
})
|
})
|
||||||
elif media_duration < clip_duration_h and not is_sequence:
|
elif media_duration < clip_duration_h:
|
||||||
self.log.debug("Media duration higher: {}".format(
|
self.log.debug("Media duration higher: {}".format(
|
||||||
(media_duration - clip_duration_h)))
|
(media_duration - clip_duration_h)))
|
||||||
representation.update({
|
representation.update({
|
||||||
Loading…
Add table
Add a link
Reference in a new issue