anchor.move((x,y)) as attribute and not method

RoboFont Forums Bugs anchor.move((x,y)) as attribute and not method

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  Bruno 8 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1076

    joanca
    Participant

    trying to move an anchor:
    ======================
    g = CurrentGlyph()

    for anchor in g.anchors:
    anchor.move((0, -20))

    g.update()
    ======================
    I got this traceback:
    Traceback (most recent call last):
    File “testscript.py”, line 4, in
    AttributeError: ‘RobofabWrapperAnchor’ object has no attribute ‘move’

    The same happens with other anchor methods.
    any solution?

    Thanks, jca

    #1077

    frederik
    Keymaster

    ah, Ive added this to the todo list :)

    #2156

    Bruno
    Participant

    I think this has been fixed in the update now, works here :)

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

You must be logged in to reply to this topic.