mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
23 lines
538 B
Python
23 lines
538 B
Python
from collections import OrderedDict
|
|
|
|
import avalon.maya
|
|
|
|
|
|
class CreateModel(avalon.maya.Creator):
|
|
"""Polygonal static geometry"""
|
|
|
|
name = "modelDefault"
|
|
label = "Model"
|
|
family = "model"
|
|
icon = "cube"
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(CreateModel, self).__init__(*args, **kwargs)
|
|
|
|
# create an ordered dict with the existing data first
|
|
data = OrderedDict(**self.data)
|
|
|
|
# Write vertex colors with the geometry.
|
|
data["writeColorSets"] = True
|
|
|
|
self.data = data
|