def plugin_load(plugin, *args): """ checks whether plugin is loaded. Loads it if not """ loaded = cmds.pluginInfo(plugin, q=True, loaded=True) if not loaded: cmds.loadPlugin(plugin)