ayon-core/pype/plugins/maya/create/create_animation.py
2018-10-18 13:59:58 +02:00

36 lines
No EOL
1,023 B
Python

from collections import OrderedDict
import avalon.maya
from pype.maya import lib
class CreateAnimation(avalon.maya.Creator):
"""Animation output for character rigs"""
name = "animationDefault"
label = "Animation"
family = "animation"
icon = "male"
def __init__(self, *args, **kwargs):
super(CreateAnimation, self).__init__(*args, **kwargs)
# create an ordered dict with the existing data first
data = OrderedDict(**self.data)
# get basic animation data : start / end / handles / steps
for key, value in lib.collect_animation_data().items():
data[key] = value
# Write vertex colors with the geometry.
data["writeColorSets"] = False
# Include only renderable visible shapes.
# Skips locators and empty transforms
data["renderableOnly"] = False
# Include only nodes that are visible at least once during the
# frame range.
data["visibleOnly"] = False
self.data = data