mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Merged in tokejepsen/pype/change/develop/switch_look_to_new_integrator (pull request #178)
Switch look to new integrator and add representations. Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
76f0db7dd2
3 changed files with 21 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"render",
|
||||
"write",
|
||||
"rig",
|
||||
"plate"
|
||||
"plate",
|
||||
"look"
|
||||
]
|
||||
exclude_families = ["clip"]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue