Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3178 from j-cube/feature/multiverse
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored Jun 8, 2022
2 parents 343440d + 016baf1 commit c7d2354
Show file tree
Hide file tree
Showing 30 changed files with 1,226 additions and 245 deletions.
15 changes: 15 additions & 0 deletions openpype/hosts/maya/plugins/create/create_multiverse_look.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from openpype.hosts.maya.api import plugin


class CreateMultiverseLook(plugin.Creator):
"""Create Multiverse Look"""

name = "mvLook"
label = "Multiverse Look"
family = "mvLook"
icon = "cubes"

def __init__(self, *args, **kwargs):
super(CreateMultiverseLook, self).__init__(*args, **kwargs)
self.data["fileFormat"] = ["usda", "usd"]
self.data["publishMipMap"] = True
10 changes: 6 additions & 4 deletions openpype/hosts/maya/plugins/create/create_multiverse_usd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@


class CreateMultiverseUsd(plugin.Creator):
"""Multiverse USD data"""
"""Create Multiverse USD Asset"""

name = "usdMain"
label = "Multiverse USD"
family = "usd"
name = "mvUsdMain"
label = "Multiverse USD Asset"
family = "mvUsd"
icon = "cubes"

def __init__(self, *args, **kwargs):
Expand All @@ -15,6 +15,7 @@ def __init__(self, *args, **kwargs):
# Add animation data first, since it maintains order.
self.data.update(lib.collect_animation_data(True))

self.data["fileFormat"] = ["usd", "usda", "usdz"]
self.data["stripNamespaces"] = False
self.data["mergeTransformAndShape"] = False
self.data["writeAncestors"] = True
Expand Down Expand Up @@ -45,6 +46,7 @@ def __init__(self, *args, **kwargs):
self.data["writeShadingNetworks"] = False
self.data["writeTransformMatrix"] = True
self.data["writeUsdAttributes"] = False
self.data["writeInstancesAsReferences"] = False
self.data["timeVaryingTopology"] = False
self.data["customMaterialNamespace"] = ''
self.data["numTimeSamples"] = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class CreateMultiverseUsdComp(plugin.Creator):
"""Create Multiverse USD Composition"""

name = "usdCompositionMain"
name = "mvUsdCompositionMain"
label = "Multiverse USD Composition"
family = "usdComposition"
family = "mvUsdComposition"
icon = "cubes"

def __init__(self, *args, **kwargs):
Expand All @@ -15,9 +15,12 @@ def __init__(self, *args, **kwargs):
# Add animation data first, since it maintains order.
self.data.update(lib.collect_animation_data(True))

# Order of `fileFormat` must match extract_multiverse_usd_comp.py
self.data["fileFormat"] = ["usda", "usd"]
self.data["stripNamespaces"] = False
self.data["mergeTransformAndShape"] = False
self.data["flattenContent"] = False
self.data["writeAsCompoundLayers"] = False
self.data["writePendingOverrides"] = False
self.data["numTimeSamples"] = 1
self.data["timeSamplesSpan"] = 0.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@


class CreateMultiverseUsdOver(plugin.Creator):
"""Multiverse USD data"""
"""Create Multiverse USD Override"""

name = "usdOverrideMain"
name = "mvUsdOverrideMain"
label = "Multiverse USD Override"
family = "usdOverride"
family = "mvUsdOverride"
icon = "cubes"

def __init__(self, *args, **kwargs):
Expand All @@ -15,6 +15,8 @@ def __init__(self, *args, **kwargs):
# Add animation data first, since it maintains order.
self.data.update(lib.collect_animation_data(True))

# Order of `fileFormat` must match extract_multiverse_usd_over.py
self.data["fileFormat"] = ["usda", "usd"]
self.data["writeAll"] = False
self.data["writeTransforms"] = True
self.data["writeVisibility"] = True
Expand Down
6 changes: 3 additions & 3 deletions openpype/hosts/maya/plugins/load/load_multiverse_usd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@


class MultiverseUsdLoader(load.LoaderPlugin):
"""Load the USD by Multiverse"""
"""Read USD data in a Multiverse Compound"""

families = ["model", "usd", "usdComposition", "usdOverride",
families = ["model", "mvUsd", "mvUsdComposition", "mvUsdOverride",
"pointcache", "animation"]
representations = ["usd", "usda", "usdc", "usdz", "abc"]

label = "Read USD by Multiverse"
label = "Load USD to Multiverse"
order = -10
icon = "code-fork"
color = "orange"
Expand Down
Loading

0 comments on commit c7d2354

Please sign in to comment.