Adding a smart set via script doesn't work

RoboFont Forums Bugs Adding a smart set via script doesn't work

This topic contains 2 replies, has 2 voices, and was last updated by  Jens K. 7 years, 7 months ago.

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

    Jens K.
    Participant

    I’m trying to add a smart set and always get an error … what am I doing wrong?

    from mojo.UI import SmartSet, addSmartSet
    
    s = SmartSet()
    s.name = "Test"
    s.query = u"Contours > 0"
    addSmartSet(s)
    

    The error is:

    Traceback (most recent call last):
    File “”, line 6, in
    File “mojo/UI.pyc”, line 360, in addSmartSet
    File “mojo/UI.pyc”, line 390, in setSmartSets
    RoboFontError: Smart Set needs a query

    #5437

    frederik
    Keymaster

    ah, your aren’t doing anything wrong
    bug in setting smart sets.

    setSmartSet seems not to be working nicely with groups….

    will be fixed in the next update, thanks

    #5438

    Jens K.
    Participant

    Thanks!

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

You must be logged in to reply to this topic.