mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
add support for more families in the new integrator
This commit is contained in:
parent
cd837f9b12
commit
9fa7e893d8
14 changed files with 129 additions and 94 deletions
|
|
@ -179,7 +179,6 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
|
|||
"subset": subset,
|
||||
"asset": data.get("asset", api.Session["AVALON_ASSET"]),
|
||||
"stagingDir": root,
|
||||
"files": [list(collection)],
|
||||
"startFrame": start,
|
||||
"endFrame": end,
|
||||
"fps": fps,
|
||||
|
|
@ -187,6 +186,14 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
|
|||
})
|
||||
instance.append(collection)
|
||||
|
||||
representation = {
|
||||
'name': 'jpg',
|
||||
'ext': '.jpg',
|
||||
'files': [list(collection)],
|
||||
"stagingDir": root,
|
||||
}
|
||||
instance.data["representations"] = [representation]
|
||||
|
||||
if data.get('user'):
|
||||
context.data["user"] = data['user']
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,13 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
|
|||
sub_proc = subprocess.Popen(subprocess_jpeg)
|
||||
sub_proc.wait()
|
||||
|
||||
if "files" not in instance.data:
|
||||
instance.data["files"] = list()
|
||||
instance.data["files"].append(jpegFile)
|
||||
if "representations" not in instance.data:
|
||||
instance.data["representations"] = []
|
||||
|
||||
representation = {
|
||||
'name': 'jpg',
|
||||
'ext': '.jpg',
|
||||
'files': jpegFile,
|
||||
"stagingDir": stagingdir,
|
||||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
|
|
|||
|
|
@ -70,6 +70,13 @@ class ExtractQuicktimeEXR(pyblish.api.InstancePlugin):
|
|||
sub_proc = subprocess.Popen(subprocess_mov)
|
||||
sub_proc.wait()
|
||||
|
||||
if "files" not in instance.data:
|
||||
instance.data["files"] = list()
|
||||
instance.data["files"].append(movFile)
|
||||
if "representations" not in instance.data:
|
||||
instance.data["representations"] = []
|
||||
|
||||
representation = {
|
||||
'name': 'mov',
|
||||
'ext': '.mov',
|
||||
'files': movFile,
|
||||
"stagingDir": stagingdir,
|
||||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
|
|
|||
|
|
@ -26,16 +26,10 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
label = "Integrate Asset"
|
||||
order = pyblish.api.IntegratorOrder
|
||||
families = ["look",
|
||||
"vdbcache",
|
||||
"assembly",
|
||||
"vrayproxy",
|
||||
"yetiRig",
|
||||
"yeticache",
|
||||
"nukescript",
|
||||
"review",
|
||||
"scene",
|
||||
"render",
|
||||
"imagesequence",
|
||||
"write"]
|
||||
exclude_families = ["clip"]
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
'anatomy_template': 'publish' or 'render', etc.
|
||||
template from anatomy that should be used for
|
||||
integrating this file. Only the first level can
|
||||
be specified right now.
|
||||
be specified right now.
|
||||
'startFrame'
|
||||
'endFrame'
|
||||
'framerate'
|
||||
|
|
@ -50,7 +50,13 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"mayaAscii",
|
||||
"setdress",
|
||||
"layout",
|
||||
"ass"
|
||||
"ass",
|
||||
"vdbcache",
|
||||
"scene",
|
||||
"vrayproxy",
|
||||
"render",
|
||||
"imagesequence",
|
||||
"review"
|
||||
]
|
||||
exclude_families = ["clip"]
|
||||
|
||||
|
|
@ -281,7 +287,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
dst = anatomy_filled[template_name]["path"]
|
||||
|
||||
instance.data["transfers"].append([src, dst])
|
||||
# template = anatomy.templates["publish"]["path"]
|
||||
instance.data["representations"][idx]['published_path'] = dst
|
||||
|
||||
representation = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue