mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix
allwo burnin without explicit verson
This commit is contained in:
parent
35ebde3a41
commit
5c819475c6
2 changed files with 7 additions and 5 deletions
|
|
@ -130,8 +130,6 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin):
|
|||
api.Session.update(session)
|
||||
os.environ.update(session)
|
||||
|
||||
version = data.get("version")
|
||||
context.data['version'] = version
|
||||
else:
|
||||
# Search in directory
|
||||
data = dict()
|
||||
|
|
@ -196,8 +194,7 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin):
|
|||
"startFrame": start,
|
||||
"endFrame": end,
|
||||
"fps": fps,
|
||||
"source": data.get('source', ''),
|
||||
"version": version
|
||||
"source": data.get('source', '')
|
||||
})
|
||||
instance.append(collection)
|
||||
instance.context.data['fps'] = fps
|
||||
|
|
|
|||
|
|
@ -24,13 +24,18 @@ class ExtractBurnin(pype.api.Extractor):
|
|||
raise RuntimeError("Burnin needs already created mov to work on.")
|
||||
|
||||
# TODO: expand burnin data list to include all usefull keys
|
||||
version = ''
|
||||
if instance.context.data.get('version'):
|
||||
version = "v" + str(instance.context.data['version'])
|
||||
|
||||
burnin_data = {
|
||||
"username": instance.context.data['user'],
|
||||
"asset": os.environ['AVALON_ASSET'],
|
||||
"task": os.environ['AVALON_TASK'],
|
||||
"start_frame": int(instance.data['startFrame']),
|
||||
"version": "v" + str(instance.context.data['version'])
|
||||
"version": version
|
||||
}
|
||||
|
||||
self.log.debug("__ burnin_data1: {}".format(burnin_data))
|
||||
for i, repre in enumerate(instance.data["representations"]):
|
||||
self.log.debug("__ i: `{}`, repre: `{}`".format(i, repre))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue