added support for writing vertex colors

This commit is contained in:
wikoreman 2018-09-28 10:45:40 +02:00
parent 3c23ac2dce
commit ddefd09bc2

View file

@ -1,3 +1,5 @@
from collections import OrderedDict
import avalon.maya
@ -8,3 +10,14 @@ class CreateModel(avalon.maya.Creator):
label = "Model"
family = "colorbleed.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"] = False
self.data = data