SetColorForLayer arguments



  • i am trying to set colors for layers with a script and cannot get it to work.

    this:

    f = CurrentFont()
    for l in f.layerOrder:
        f.setColorForLayer(l, (.3, .2, .1, .7))
    

    gives me the traceback:

    File "lib/fontObjects/robofabWrapper.pyc", line 3914, in setColorForLayer
    TypeError: setLayerColor() takes exactly 3 arguments (2 given)
    

    shouldn’t that work?


  • admin

    Hi Jo

    good catch, will be solved in the next update...