Hiero: accepting of retime speed

This commit is contained in:
Jakub Jezek 2021-05-26 12:41:38 +02:00
parent 7c580363df
commit 6b420df4bd
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 10 additions and 5 deletions

View file

@ -29,6 +29,7 @@ class PreCollectClipEffects(pyblish.api.InstancePlugin):
track_index = track.trackIndex()
tracks_effect_items = instance.context.data.get("tracksEffectItems")
clip_effect_items = instance.data.get("clipEffectItems")
speed = track_item.playbackSpeed()
# add clips effects to track's:
if clip_effect_items:
@ -36,6 +37,9 @@ class PreCollectClipEffects(pyblish.api.InstancePlugin):
retime_effect = None
if speed != 1:
retime_effect = True
# process all effects and devide them to instance
for _track_index, sub_track_items in tracks_effect_items.items():
# skip if track index is the same as review track index

View file

@ -99,11 +99,11 @@ class PrecollectRetime(api.InstancePlugin):
("source_in_change, source_out_change",
source_in_change, source_out_change))
time_warp_nodes.append({
"Class": "TimeWarp",
"name": name,
"lookup": look_up
})
time_warp_nodes.append({
"Class": "TimeWarp",
"name": name,
"lookup": look_up
})
self.log.debug((source_in_change, source_out_change))
# recalculate handles by the speed
@ -146,6 +146,7 @@ class PrecollectRetime(api.InstancePlugin):
"handleStart": source_handle_start,
"handleEnd": source_out_h - source_out
})
self.log.debug("versionData: {}".format(instance.data["versionData"]))
self.log.debug("sourceIn: {}".format(instance.data["sourceIn"]))
self.log.debug("sourceOut: {}".format(instance.data["sourceOut"]))
self.log.debug("speed: {}".format(instance.data["speed"]))