mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Switch look to new integrator and add representations.
This commit is contained in:
parent
128ace6351
commit
6e9853739a
3 changed files with 21 additions and 3 deletions
|
|
@ -25,8 +25,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
label = "Integrate Asset"
|
label = "Integrate Asset"
|
||||||
order = pyblish.api.IntegratorOrder
|
order = pyblish.api.IntegratorOrder
|
||||||
families = ["look",
|
families = ["assembly",
|
||||||
"assembly",
|
|
||||||
"yetiRig",
|
"yetiRig",
|
||||||
"yeticache"]
|
"yeticache"]
|
||||||
exclude_families = ["clip"]
|
exclude_families = ["clip"]
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
"render",
|
"render",
|
||||||
"write",
|
"write",
|
||||||
"rig",
|
"rig",
|
||||||
"plate"
|
"plate",
|
||||||
|
"look"
|
||||||
]
|
]
|
||||||
exclude_families = ["clip"]
|
exclude_families = ["clip"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,24 @@ class ExtractLook(pype.api.Extractor):
|
||||||
instance.data["files"].append(maya_fname)
|
instance.data["files"].append(maya_fname)
|
||||||
instance.data["files"].append(json_fname)
|
instance.data["files"].append(json_fname)
|
||||||
|
|
||||||
|
instance.data["representations"] = []
|
||||||
|
instance.data["representations"].append(
|
||||||
|
{
|
||||||
|
"name": "ma",
|
||||||
|
"ext": '.ma',
|
||||||
|
"files": os.path.basename(maya_fname),
|
||||||
|
"stagingDir": os.path.dirname(maya_fname),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
instance.data["representations"].append(
|
||||||
|
{
|
||||||
|
"name": "json",
|
||||||
|
"ext": '.json',
|
||||||
|
"files": os.path.basename(json_fname),
|
||||||
|
"stagingDir": os.path.dirname(json_fname),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# Set up the resources transfers/links for the integrator
|
# Set up the resources transfers/links for the integrator
|
||||||
instance.data["transfers"].extend(transfers)
|
instance.data["transfers"].extend(transfers)
|
||||||
instance.data["hardlinks"].extend(hardlinks)
|
instance.data["hardlinks"].extend(hardlinks)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue