setColorForLayer arguments

RoboFont Forums Bugs setColorForLayer arguments

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 5 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6026

    jo
    Participant

    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?

    #6029

    frederik
    Keymaster

    Hi Jo

    good catch, will be solved in the next update…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.