Merge pull request #3253 from pypeclub/enhancement/maya-support-fbx-cameras

Maya: FBX camera export
This commit is contained in:
Ondřej Samohel 2022-05-26 16:42:17 +02:00 committed by GitHub
commit 303eabd0a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from maya import cmds # noqa
import pyblish.api
class CollectFbxCamera(pyblish.api.InstancePlugin):
"""Collect Camera for FBX export."""
order = pyblish.api.CollectorOrder + 0.2
label = "Collect Camera for FBX export"
families = ["camera"]
def process(self, instance):
if not instance.data.get("families"):
instance.data["families"] = []
if "fbx" not in instance.data["families"]:
instance.data["families"].append("fbx")
instance.data["cameras"] = True

View file

@ -165,6 +165,9 @@
"CollectMayaRender": {
"sync_workfile_version": false
},
"CollectFbxCamera": {
"enabled": false
},
"ValidateInstanceInContext": {
"enabled": true,
"optional": true,

View file

@ -21,6 +21,20 @@
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "CollectFbxCamera",
"label": "Collect Camera for FBX export",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
}
]
},
{
"type": "splitter"
},