Merge pull request #3350 from j-cube/feature/multiverse

Feature/multiverse
This commit is contained in:
Ondřej Samohel 2022-06-20 18:57:42 +02:00 committed by GitHub
commit f7ca9876d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 110 additions and 6 deletions

View file

@ -16,7 +16,7 @@ class CreateMultiverseUsd(plugin.Creator):
self.data.update(lib.collect_animation_data(True))
self.data["fileFormat"] = ["usd", "usda", "usdz"]
self.data["stripNamespaces"] = False
self.data["stripNamespaces"] = True
self.data["mergeTransformAndShape"] = False
self.data["writeAncestors"] = True
self.data["flattenParentXforms"] = False
@ -37,15 +37,15 @@ class CreateMultiverseUsd(plugin.Creator):
self.data["writeUVs"] = True
self.data["writeColorSets"] = False
self.data["writeTangents"] = False
self.data["writeRefPositions"] = False
self.data["writeRefPositions"] = True
self.data["writeBlendShapes"] = False
self.data["writeDisplayColor"] = False
self.data["writeDisplayColor"] = True
self.data["writeSkinWeights"] = False
self.data["writeMaterialAssignment"] = False
self.data["writeHardwareShader"] = False
self.data["writeShadingNetworks"] = False
self.data["writeTransformMatrix"] = True
self.data["writeUsdAttributes"] = False
self.data["writeUsdAttributes"] = True
self.data["writeInstancesAsReferences"] = False
self.data["timeVaryingTopology"] = False
self.data["customMaterialNamespace"] = ''

View file

@ -95,4 +95,4 @@
}
}
}
}
}

View file

@ -66,6 +66,28 @@
"defaults": [],
"joint_hints": "jnt_org"
},
"CreateMultiverseLook": {
"enabled": true,
"publish_mip_map": true
},
"CreateMultiverseUsd": {
"enabled": true,
"defaults": [
"Main"
]
},
"CreateMultiverseUsdComp": {
"enabled": true,
"defaults": [
"Main"
]
},
"CreateMultiverseUsdOver": {
"enabled": true,
"defaults": [
"Main"
]
},
"CreateAnimation": {
"enabled": true,
"defaults": [
@ -379,6 +401,14 @@
"optional": true,
"active": true
},
"ExtractAlembic": {
"enabled": true,
"families": [
"pointcache",
"model",
"vrayproxy"
]
},
"ValidateRigContents": {
"enabled": false,
"optional": true,

View file

@ -124,10 +124,41 @@
]
},
{
"type": "dict",
"collapsible": true,
"key": "CreateMultiverseLook",
"label": "Create Multiverse Look",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "publish_mip_map",
"label": "Publish Mip Maps"
}
]
},
{
"type": "schema_template",
"name": "template_create_plugin",
"template_data": [
{
"key": "CreateMultiverseUsd",
"label": "Create Multiverse USD"
},
{
"key": "CreateMultiverseUsdComp",
"label": "Create Multiverse USD Composition"
},
{
"key": "CreateMultiverseUsdOver",
"label": "Create Multiverse USD Override"
},
{
"key": "CreateAnimation",
"label": "Create Animation"

View file

@ -504,6 +504,30 @@
"label": "ValidateUniqueNames"
}
]
},
{
"type": "label",
"label": "Extractors"
},
{
"type": "dict",
"collapsible": true,
"key": "ExtractAlembic",
"label": "Extract Alembic",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"key": "families",
"label": "Families",
"type": "list",
"object_type": "text"
}
]
}
]
},

View file

@ -65,6 +65,25 @@ the one depicted here:
![Maya - Multiverse Setup](assets/maya-multiverse_setup.png)
```
{
"MULTIVERSE_PATH": "/Path/to/Multiverse-{MULTIVERSE_VERSION}",
"MAYA_MODULE_PATH": "{MULTIVERSE}/Maya;{MAYA_MODULE_PATH}"
}
{
"MULTIVERSE_VERSION": "7.1.0-py27"
}
```
The Multiverse Maya module file (.mod) pointed above contains all the necessary
environment variables to run Multiverse.
The OpenPype settings will contain blocks to enable/disable the Multiverse
Creators and Loader, along with sensible studio setting.
For more information about setup of Multiverse please refer to the relative page
on the [Multiverse official documentation](https://multi-verse.io/docs).
@ -94,7 +113,7 @@ You can choose the USD file format in the Creators' set nodes:
- Assets: `.usd` (default) or `.usda` or `.usdz`
- Compositions: `.usda` (default) or `.usd`
- Overrides: `.usda` (default) or `.usd`
- Looks: `.ma`
- Looks: `.ma` (default)
![Maya - Multiverse Asset Creator](assets/maya-multiverse_openpype_asset_creator.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 448 KiB

Before After
Before After