19 lines
725 B
Plaintext
19 lines
725 B
Plaintext
// Restart Maya MCP plugin
|
|
// First, unload the plugin (if loaded)
|
|
if (`pluginInfo -query -loaded "d:/Personal/Document/maya/scripts/Maya_MCP/maya_mcp_plugin.py"`)
|
|
{
|
|
unloadPlugin "d:/Personal/Document/maya/scripts/Maya_MCP/maya_mcp_plugin.py";
|
|
print "Maya MCP plugin unloaded.\n";
|
|
}
|
|
|
|
// Wait for a moment
|
|
pause -seconds 1;
|
|
|
|
// Load the plugin using full path
|
|
loadPlugin "d:/Personal/Document/maya/scripts/Maya_MCP/maya_mcp_plugin.py";
|
|
print "Maya MCP plugin loaded.\n";
|
|
|
|
// Start the server (using FastAPI mode)
|
|
python("import sys; sys.path.append('d:/Dev/Tools/MayaMCP'); import importlib; import server; importlib.reload(server); server.stop_server(); server.start_server()");
|
|
print "Maya MCP server restarted.\n";
|