mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixing minor issues with quicktime and thumbnail creation after update to 2.0
This commit is contained in:
parent
c63b863db2
commit
63d0ff487d
4 changed files with 12 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
'render': 'render',
|
||||
'nukescript': 'comp',
|
||||
'review': 'mov',
|
||||
'plate': 'img'
|
||||
'plates': 'img'
|
||||
}
|
||||
|
||||
def process(self, instance):
|
||||
|
|
@ -54,9 +54,11 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
}
|
||||
elif comp.get('preview'):
|
||||
if not comp.get('startFrameReview'):
|
||||
comp['startFrameReview'] = comp['startFrame']
|
||||
comp['startFrameReview'] = instance.data['startFrame']
|
||||
if not comp.get('endFrameReview'):
|
||||
comp['endFrameReview'] = comp['endFrame']
|
||||
comp['endFrameReview'] = instance.data['endFrame']
|
||||
if not comp.get('frameRate'):
|
||||
comp['frameRate'] = instance.context.data['fps']
|
||||
location = ft_session.query(
|
||||
'Location where name is "ftrack.server"').one()
|
||||
component_data = {
|
||||
|
|
@ -65,7 +67,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
"metadata": {'ftr_meta': json.dumps({
|
||||
'frameIn': int(comp['startFrameReview']),
|
||||
'frameOut': int(comp['endFrameReview']),
|
||||
'frameRate': comp['frameRate']})}
|
||||
'frameRate': float(comp['frameRate'])})}
|
||||
}
|
||||
comp['thumbnail'] = False
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -194,13 +194,14 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
|
|||
"source": data.get('source', '')
|
||||
})
|
||||
instance.append(collection)
|
||||
instance.context.data['fps'] = fps
|
||||
|
||||
if "representations" not in instance.data:
|
||||
instance.data["representations"] = []
|
||||
|
||||
representation = {
|
||||
'name': ext,
|
||||
'ext': '.{}'.format(ext),
|
||||
'ext': '{}'.format(ext),
|
||||
'files': list(collection),
|
||||
"stagingDir": root,
|
||||
"anatomy_template": "render"
|
||||
|
|
|
|||
|
|
@ -67,8 +67,9 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
|
|||
|
||||
representation = {
|
||||
'name': 'jpg',
|
||||
'ext': '.jpg',
|
||||
'ext': 'jpg',
|
||||
'files': jpegFile,
|
||||
"stagingDir": stagingdir,
|
||||
"thumbnail": True
|
||||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
|
|
|||
|
|
@ -75,8 +75,9 @@ class ExtractQuicktimeEXR(pyblish.api.InstancePlugin):
|
|||
|
||||
representation = {
|
||||
'name': 'mov',
|
||||
'ext': '.mov',
|
||||
'ext': 'mov',
|
||||
'files': movFile,
|
||||
"stagingDir": stagingdir,
|
||||
"preview": True
|
||||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue