mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Initial draft for publishing maya rigs into the USD asset and groundwork to publish the loaded assets as animation instances directly into the shots
This commit is contained in:
parent
53ffc37f35
commit
781f2a5e4a
1 changed files with 23 additions and 0 deletions
|
|
@ -308,6 +308,8 @@ class CollectUSDLayerContributions(pyblish.api.InstancePlugin,
|
|||
instance.data.get("productGroup") or "USD Layer"
|
||||
)
|
||||
|
||||
instance.data["has_usd_contribution"] = True
|
||||
|
||||
# Allow formatting in variant set name and variant name
|
||||
data = instance.data.copy()
|
||||
data["layer"] = attr_values["contribution_layer"]
|
||||
|
|
@ -562,6 +564,27 @@ class CollectUSDLayerContributionsHoudiniLook(CollectUSDLayerContributions):
|
|||
return defs
|
||||
|
||||
|
||||
class CollectUSDLayerContributionsMayaRig(CollectUSDLayerContributions):
|
||||
"""
|
||||
This is solely here to expose the attribute definitions for the
|
||||
Houdini "look" family.
|
||||
"""
|
||||
# TODO: Improve how this is built for the rig family
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
label = CollectUSDLayerContributions.label + " (Rig)"
|
||||
|
||||
@classmethod
|
||||
def get_attribute_defs(cls):
|
||||
defs = super().get_attribute_defs()
|
||||
|
||||
# Update default for department layer to look
|
||||
layer_def = next(d for d in defs if d.key == "contribution_layer")
|
||||
layer_def.default = "rig"
|
||||
|
||||
return defs
|
||||
|
||||
|
||||
class ValidateUSDDependencies(pyblish.api.InstancePlugin):
|
||||
families = ["usdLayer"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue