mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
added fps attr and ftrack family to collect filesequences
This commit is contained in:
parent
d7495f3bfb
commit
a2e73c0fc0
1 changed files with 4 additions and 1 deletions
|
|
@ -147,11 +147,13 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
|
|||
"found sequence")
|
||||
raise RuntimeError("Invalid sequence")
|
||||
|
||||
fps = data.get("fps", 25)
|
||||
|
||||
# Get family from the data
|
||||
families = data.get("families", ["render"])
|
||||
assert isinstance(families, (list, tuple)), "Must be iterable"
|
||||
assert families, "Must have at least a single family"
|
||||
|
||||
families.append("ftrack")
|
||||
for collection in collections:
|
||||
instance = context.create_instance(str(collection))
|
||||
self.log.info("Collection: %s" % list(collection))
|
||||
|
|
@ -180,6 +182,7 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
|
|||
"files": [list(collection)],
|
||||
"startFrame": start,
|
||||
"endFrame": end,
|
||||
"fps": fps,
|
||||
"source": data.get('source', '')
|
||||
})
|
||||
instance.append(collection)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue