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

Multiverse: fixed composition write, full docs, cosmetics #3178

Merged
merged 26 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e6fd109
plugins: modified labels for multiverse creators/publishers/loader
pberto Apr 10, 2022
70fe3f8
documentation: added initial multiverse docs
pberto Apr 10, 2022
df1a42c
website: added jcube as a contributor to homepage
pberto Apr 10, 2022
40d4872
OP/MV: Export correct node , export composition with absolute path.
dmo-j-cube May 6, 2022
b796c25
PEP Formatting and typo fixing.
dmo-j-cube May 9, 2022
8bb0c27
Removing attr check and explaining in a comment.
dmo-j-cube May 9, 2022
7cf7f5e
Adding support for choosing .usd/.usda/.usdz.
dmo-j-cube May 10, 2022
686d523
Merge remote-tracking branch 'origin' into documentation/multiverse
pberto May 10, 2022
7ecc235
Merge branch 'documentation/multiverse' into feature/multiverse
dmo-j-cube May 10, 2022
334ef56
docs: finished multiverse documentation
pberto May 13, 2022
2487c1f
cosmetics: removed two trailing whitespaces
pberto May 13, 2022
8e1cc8c
Added mvLook publish.
dmo-j-cube May 18, 2022
b62627b
Change the default of composition/override to usda.
dmo-j-cube May 18, 2022
229852d
Adding new asset/composition options to the creators.
dmo-j-cube May 18, 2022
e80ad59
Merge remote-tracking branch 'origin/feature/multiverse' into feature…
dmo-j-cube May 18, 2022
0b7e3b6
Fixed formatting errors, removed unneeded code, added comments.
dmo-j-cube May 20, 2022
fe40624
Minor cleanup.
dmo-j-cube May 20, 2022
eff55df
Expanding the scope of mvLook to publish mipmapped textures too, like…
dmo-j-cube May 27, 2022
c9e4b14
Removed unused pprint import.
dmo-j-cube May 27, 2022
9c73a41
Fixing a typo!
dmo-j-cube May 27, 2022
46ab3b8
Addressed a concern raised for how file_formats are extracted from in…
dmo-j-cube May 30, 2022
8f26e68
multiverse documentation: see commit body
pberto May 31, 2022
5c8e7fd
docstring: addressing trailing whitespaces to placate the hound
pberto May 31, 2022
7d3b76c
Removed lib for hound.
dmo-j-cube Jun 2, 2022
bbbe5b3
Merge remote-tracking branch 'origin/feature/multiverse' into feature…
dmo-j-cube Jun 2, 2022
016baf1
Renaming `usdX` families to `mvUsdX`, that is `usd`->`mvUsd`,
dmo-j-cube Jun 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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