mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
24 lines
728 B
Python
24 lines
728 B
Python
import avalon.maya
|
|
from pype.maya import lib
|
|
|
|
|
|
class CreateCamera(avalon.maya.Creator):
|
|
"""Single baked camera"""
|
|
|
|
name = "cameraDefault"
|
|
label = "Camera"
|
|
family = "camera"
|
|
icon = "video-camera"
|
|
defaults = ['Main']
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(CreateCamera, self).__init__(*args, **kwargs)
|
|
|
|
# get basic animation data : start / end / handles / steps
|
|
animation_data = lib.collect_animation_data()
|
|
for key, value in animation_data.items():
|
|
self.data[key] = value
|
|
|
|
# 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
|