Merge pull request #4315 from ynput/bugfix/usd-animation-fix-for-multiverse

This commit is contained in:
Ondřej Samohel 2023-01-16 10:55:23 +01:00 committed by GitHub
commit 223610bbf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import six
from maya import cmds from maya import cmds
from maya import mel from maya import mel
import pyblish.api
from openpype.pipeline import publish from openpype.pipeline import publish
from openpype.hosts.maya.api.lib import maintained_selection from openpype.hosts.maya.api.lib import maintained_selection
@ -156,6 +157,7 @@ class ExtractMultiverseUsd(publish.Extractor):
return members return members
def process(self, instance): def process(self, instance):
# Load plugin first # Load plugin first
cmds.loadPlugin("MultiverseForMaya", quiet=True) cmds.loadPlugin("MultiverseForMaya", quiet=True)
@ -254,7 +256,8 @@ class ExtractMultiverseUsdAnim(ExtractMultiverseUsd):
Upon publish a .usd sparse cache will be written. Upon publish a .usd sparse cache will be written.
""" """
label = "Extract Multiverse USD Animation Sparse Cache" label = "Extract Multiverse USD Animation Sparse Cache"
families = ["animation"] families = ["animation", "usd"]
match = pyblish.api.Subset
def get_default_options(self): def get_default_options(self):
anim_options = self.default_options anim_options = self.default_options