def setPath(): gizmosPath=nuke.getFilename('Locate Gizmos directory.') if gizmosPath: data={} data['gizmosPath']=gizmosPath f=open(os.path.dirname(__file__)+'/'+'config.yml','w') uy.dump(data, f) f.close() gizmoMenuItems(gizmosPath)
def setSettings(data): settingsFile = cmds.internalVar(upd=True) + 'Tapp.yml' f = open(settingsFile, 'w') uy.dump(data, f)