mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Global: brushing code
This commit is contained in:
parent
57f742d2cc
commit
d2eeb31756
2 changed files with 4 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ class CollectOcioReview(pyblish.api.InstancePlugin):
|
|||
otio_tl_range = otio_clip.range_in_parent()
|
||||
|
||||
# calculate real timeline end needed for the clip
|
||||
clip_end_frame = int(
|
||||
clip_frame_end = int(
|
||||
otio_tl_range.start_time.value + otio_tl_range.duration.value)
|
||||
|
||||
# skip if no review track available
|
||||
|
|
@ -57,13 +57,12 @@ class CollectOcioReview(pyblish.api.InstancePlugin):
|
|||
track_rip = track.range_in_parent()
|
||||
|
||||
# calculate real track end frame
|
||||
track_end_frame = int(
|
||||
track_rip.start_time.value + track_rip.duration.value)
|
||||
track_frame_end = int(track_rip.end_time_exclusive().value)
|
||||
|
||||
# check if the end of track is not lower then clip requirement
|
||||
if clip_end_frame > track_end_frame:
|
||||
if clip_frame_end > track_frame_end:
|
||||
# calculate diference duration
|
||||
gap_duration = clip_end_frame - track_end_frame
|
||||
gap_duration = clip_frame_end - track_frame_end
|
||||
# create rational time range for gap
|
||||
otio_gap_range = otio.opentime.TimeRange(
|
||||
start_time=otio.opentime.RationalTime(
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ class ExtractOTIOReview(openpype.api.Extractor):
|
|||
|
||||
def process(self, instance):
|
||||
# TODO: convert resulting image sequence to mp4
|
||||
# TODO: add oudio ouput to the mp4 if audio in review is on.
|
||||
|
||||
# get otio clip and other time info from instance clip
|
||||
# TODO: what if handles are different in `versionData`?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue