mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #721 from pypeclub/feature/camerarig
Maya: add camera rig publishing option
This commit is contained in:
commit
678fcdd160
4 changed files with 17 additions and 4 deletions
|
|
@ -90,7 +90,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"harmony.template",
|
||||
"harmony.palette",
|
||||
"editorial",
|
||||
"background"
|
||||
"background",
|
||||
"camerarig"
|
||||
]
|
||||
exclude_families = ["clip"]
|
||||
db_representation_context_keys = [
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from pype.hosts.maya import lib
|
|||
class CreateCamera(avalon.maya.Creator):
|
||||
"""Single baked camera"""
|
||||
|
||||
name = "cameraDefault"
|
||||
name = "cameraMain"
|
||||
label = "Camera"
|
||||
family = "camera"
|
||||
icon = "video-camera"
|
||||
|
|
@ -22,3 +22,13 @@ class CreateCamera(avalon.maya.Creator):
|
|||
# Bake to world space by default, when this is False it will also
|
||||
# include the parent hierarchy in the baked results
|
||||
self.data['bakeToWorldSpace'] = True
|
||||
|
||||
|
||||
class CreateCameraRig(avalon.maya.Creator):
|
||||
"""Complex hierarchy with camera."""
|
||||
|
||||
name = "camerarigMain"
|
||||
label = "Camera Rig"
|
||||
family = "camerarig"
|
||||
icon = "video-camera"
|
||||
defaults = ['Main']
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ class ReferenceLoader(pype.hosts.maya.plugin.ReferenceLoader):
|
|||
"setdress",
|
||||
"layout",
|
||||
"camera",
|
||||
"rig"]
|
||||
"rig",
|
||||
"camerarig"]
|
||||
representations = ["ma", "abc", "fbx", "mb"]
|
||||
tool_names = ["loader"]
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ class ExtractMayaSceneRaw(pype.api.Extractor):
|
|||
hosts = ["maya"]
|
||||
families = ["mayaAscii",
|
||||
"setdress",
|
||||
"layout"]
|
||||
"layout",
|
||||
"camerarig"]
|
||||
scene_type = "ma"
|
||||
|
||||
def process(self, instance):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue