mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Hiero: new retime and old retime to archived effects
This commit is contained in:
parent
09b8cd5b40
commit
bc0df1cf3a
2 changed files with 29 additions and 1 deletions
|
|
@ -0,0 +1,28 @@
|
|||
from pyblish import api
|
||||
from openpype.lib import editorial
|
||||
reload(editorial)
|
||||
|
||||
|
||||
class PrecollectOTIORetime(api.InstancePlugin):
|
||||
"""Calculate Retiming of selected track items."""
|
||||
|
||||
order = api.CollectorOrder - 0.578
|
||||
label = "Precollect OTIO Retime"
|
||||
hosts = ["hiero"]
|
||||
families = ["clip"]
|
||||
|
||||
def process(self, instance):
|
||||
handle_start = instance.data["handleStart"]
|
||||
handle_end = instance.data["handleEnd"]
|
||||
|
||||
# get basic variables
|
||||
otio_clip = instance.data["otioClip"]
|
||||
retimed_attributes = editorial.get_media_range_with_retimes(
|
||||
otio_clip, handle_start, handle_end)
|
||||
self.log.debug(
|
||||
">> media_in, media_out: {}".format(retimed_attributes))
|
||||
|
||||
media_in = retimed_attributes["mediaIn"]
|
||||
media_out = retimed_attributes["mediaOut"]
|
||||
handles_start = retimed_attributes["handleStart"]
|
||||
handles_end = retimed_attributes["handleEnd"]
|
||||
|
|
@ -9,7 +9,7 @@ class PrecollectRetime(api.InstancePlugin):
|
|||
order = api.CollectorOrder - 0.578
|
||||
label = "Precollect Retime"
|
||||
hosts = ["hiero"]
|
||||
families = ['retime']
|
||||
families = ['retime_']
|
||||
|
||||
def process(self, instance):
|
||||
if not instance.data.get("versionData"):
|
||||
Loading…
Add table
Add a link
Reference in a new issue