mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Hiero: accepting of retime speed
This commit is contained in:
parent
7c580363df
commit
6b420df4bd
2 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue