mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Change start and end frame to timeline in and out.
This commit is contained in:
parent
710dac2b5d
commit
65a6152abe
1 changed files with 6 additions and 4 deletions
|
|
@ -184,10 +184,12 @@ class CollectHierarchyContext(pyblish.api.ContextPlugin):
|
|||
source_in = int(instance.data["sourceIn"])
|
||||
source_out = int(instance.data["sourceOut"])
|
||||
|
||||
instance.data['startFrame'] = int(
|
||||
source_first + source_in - handle_start)
|
||||
instance.data['endFrame'] = int(
|
||||
(source_first + source_out + handle_end))
|
||||
instance.data['startFrame'] = (
|
||||
instance.data["item"].timelineIn() - handle_start
|
||||
)
|
||||
instance.data['endFrame'] = (
|
||||
instance.data["item"].timelineOut() + handle_end
|
||||
)
|
||||
|
||||
# inject assetsShared to other plates types
|
||||
assets_shared = context.data.get("assetsShared")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue