mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
rename startFrameReview to frameStartFtrack
This commit is contained in:
parent
9265f20cc7
commit
0c296ae14d
3 changed files with 6 additions and 10 deletions
|
|
@ -73,9 +73,9 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
'''
|
||||
start_frame = 0
|
||||
end_frame = 1
|
||||
if 'endFrameReview' in comp and 'startFrameReview' in comp:
|
||||
if 'frameEndFtrack' in comp and 'frameStartFtrack' in comp:
|
||||
end_frame += (
|
||||
comp['endFrameReview'] - comp['startFrameReview']
|
||||
comp['frameEndFtrack'] - comp['frameStartFtrack']
|
||||
)
|
||||
else:
|
||||
end_frame += (
|
||||
|
|
|
|||
|
|
@ -33,17 +33,13 @@ class ExtractQuicktime(pype.api.Extractor):
|
|||
|
||||
# if start and end frames cannot be determined, get them
|
||||
# from Maya timeline
|
||||
start = instance.data.get("startFrameReview")
|
||||
end = instance.data.get("endFrameReview")
|
||||
start = instance.data.get("frameStartFtrack")
|
||||
end = instance.data.get("frameEndFtrack")
|
||||
if start is None:
|
||||
start = cmds.playbackOptions(query=True, animationStartTime=True)
|
||||
if end is None:
|
||||
end = cmds.playbackOptions(query=True, animationEndTime=True)
|
||||
self.log.info("start: {}, end: {}".format(start, end))
|
||||
handles = instance.data.get("handles", 0)
|
||||
if handles:
|
||||
start -= handles
|
||||
end += handles
|
||||
|
||||
# get cameras
|
||||
camera = instance.data['review_camera']
|
||||
|
|
|
|||
|
|
@ -170,8 +170,8 @@ class ExtractReviewSP(pyblish.api.InstancePlugin):
|
|||
"stagingDir": out_stagigng_dir,
|
||||
"tags": new_tags,
|
||||
"outputName": name,
|
||||
"startFrameReview": 1,
|
||||
"endFrameReview": video_len
|
||||
"frameStartFtrack": 1,
|
||||
"frameEndFtrack": video_len
|
||||
})
|
||||
# cleanup thumbnail from new repre
|
||||
if repre_new.get("thumbnail"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue