Scripts Menu name control



  • 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
    

  • admin

    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)