SetColorForLayer arguments

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


    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...

Log in to reply