splinecraft
6/3/2017 - 6:22 PM

converts rgb values to 0.0-1.0 values for Maya flags

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