Scripts Menu name control

RoboFont Forums Enhancements Scripts Menu name control

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

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

    joanca
    Participant

    I think it would be nice to be able to store the Menu name in the script code itself, instead of going to preferences. Something similar to FL that had this first line as:
    # FLM: Name for Menu

    #4266

    frederik
    Keymaster

    naming inside a file isn’t a good idea: all files have be parsed before a menu can be build

    will add some functionality to mojo.UI in the next version

    from mojo.UI import getScriptingMenuNamingShortKey, setScriptingMenuNamingShortKey
    
    data = getScriptingMenuNamingShortKey()
    
    data['/path/to/my/python/script.py'] = dict(preferredName="my script name", shortKey="d")
    
    setScriptingMenuNamingShortKey(data)
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.