Switch look to new integrator and add representations.

This commit is contained in:
Toke Jepsen 2019-06-13 15:43:56 +01:00
parent 128ace6351
commit 6e9853739a
3 changed files with 21 additions and 3 deletions

View file

@ -25,8 +25,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
label = "Integrate Asset"
order = pyblish.api.IntegratorOrder
families = ["look",
"assembly",
families = ["assembly",
"yetiRig",
"yeticache"]
exclude_families = ["clip"]

View file

@ -61,7 +61,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
"render",
"write",
"rig",
"plate"
"plate",
"look"
]
exclude_families = ["clip"]

View file

@ -281,6 +281,24 @@ class ExtractLook(pype.api.Extractor):
instance.data["files"].append(maya_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
instance.data["transfers"].extend(transfers)
instance.data["hardlinks"].extend(hardlinks)