Merge pull request #1498 from pypeclub/bugfix/maya_thumbnail_and_hero

This commit is contained in:
Milan Kolar 2021-05-10 12:51:09 +02:00 committed by GitHub
commit 247f83918d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 3 deletions

View file

@ -19,7 +19,6 @@ class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
"rig",
"camerarig"]
representations = ["ma", "abc", "fbx", "mb"]
tool_names = ["loader"]
label = "Reference"
order = -10

View file

@ -34,7 +34,7 @@ class ExtractThumbnail(openpype.api.Extractor):
capture_preset = ""
capture_preset = (
instance.context.data["project_settings"]['maya']['publish']['ExtractPlayblast']
instance.context.data["project_settings"]['maya']['publish']['ExtractPlayblast']['capture_preset']
)
try:

View file

@ -22,6 +22,7 @@ class DeleteOldVersions(api.SubsetLoader):
representations = ["*"]
families = ["*"]
tool_names = ["library_loader"]
label = "Delete Old Versions"
order = 35
@ -436,6 +437,7 @@ class CalculateOldVersions(DeleteOldVersions):
"""Calculate file size of old versions"""
label = "Calculate Old Versions"
order = 30
tool_names = ["library_loader"]
options = [
qargparse.Integer(

View file

@ -1,7 +1,18 @@
{
"publish": {
"IntegrateHeroVersion": {
"enabled": true
"enabled": true,
"optional": true,
"families": [
"model",
"rig",
"look",
"pointcache",
"animation",
"setdress",
"layout",
"mayaAscii"
]
},
"ExtractJpegEXR": {
"enabled": true,

View file

@ -16,6 +16,17 @@
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "optional",
"label": "Optional"
},
{
"key": "families",
"label": "Families",
"type": "list",
"object_type": "text"
}
]
},