converts rgb values to 0.0-1.0 values for Maya flags
def rgb(self, values): """converts rgb values to 0.0-1.0 for maya flags""" converted = [] for val in values: converted.append(round(val / 255.0, 3)) return converted