title: assigning .overrideColor values to buttons in Maya
body: <p>I want to assign all 31 colors from the .overrideColors attribute to 31 generated buttons in Maya via Python. The bgc option from cmds.button only allows me to put 3 float values. How can I create those colors ? It is supposed to change the color of a curve by clicking the colored button in the UI.</p>
  
  <p>I started with :</p>
  
  <pre><code>def UI():
      cmds.window()
      cmds.flowLayout()
  
      for i in range (0,32)
      cmds.button('')
  </code></pre>