Hi, I just lost a day to this so I’m making a post to raise awareness
It looks like Maya 2019 calls userSetup.py earlier than it used to. I upgraded a few days ago and my toolset worked as usual, until at some point after closing and re-opening Maya my userSetup stopped running the studio menu and rollback importer.
The solution was to nest the imports from my studio tool-set and calls under a function to be called in cmds.evalDeferred([function], lowestPriority=True) and to store my menu and rollback variables under main
Has anyone else struggled with this?
def start(): from sys_utils import mk_menu from sys_utils.rollbackImporter import RollbackImporter import __main__ __main__.rollback = RollbackImporter() __main__.mkMenu = mk_menu.MKMenu() cmds.evalDeferred(start, lp=True)