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:
Roy Nieterau 2024-10-01 20:09:36 +02:00
parent 53ffc37f35
commit 781f2a5e4a

View file

@ -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"]