def getSettings(): settingsFile = cmds.internalVar(upd=True) + 'Tapp.yml' f = open(settingsFile, 'r') settings = uy.load(f) return settings
def loadGizmos(): configFile=os.path.dirname(__file__)+'/'+'config.yml' if os.path.exists(configFile): f=open(configFile,'r') data=uy.load(f) if os.path.exists(data['gizmosPath']): gizmoMenuItems(data['gizmosPath']) else: nuke.message('Gizmos Path in config file is not valid!') else: nuke.message('No config file were found for Tapp Gizmos!')