Global: brushing code

This commit is contained in:
Jakub Jezek 2021-06-02 16:13:42 +02:00
parent 57f742d2cc
commit d2eeb31756
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 4 additions and 6 deletions

View file

@ -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(

View file

@ -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`?