This commit is contained in:
2025-12-06 18:23:17 +08:00
parent 1f10abfb32
commit 9f30e905d7
259 changed files with 33763 additions and 348 deletions

View File

@@ -6,7 +6,7 @@ global proc QuadRemesher_shelf () {
if ($verbose) print "QuadRemesher_shelf execution...\n";
$theButtonCommand = "import QuadRemesher\nqr = QuadRemesher.QuadRemesher()\n";
$theButtonCommand = "import sys, os, maya.cmds as mc\nplug_info = mc.pluginInfo('QuadRemesherPlugIn', q=True, path=True)\nqr_scripts = os.path.join(os.path.dirname(plug_info), '..', 'scripts')\nqr_scripts = os.path.normpath(qr_scripts)\nif qr_scripts not in sys.path: sys.path.insert(0, qr_scripts)\nimport QuadRemesher\nqr = QuadRemesher.QuadRemesher()";
// search if the shelfButton exists:
// NB: shelfButton -query -exists "QuadRemesher" doesn't work because, the name of the shelfButtons are not saved by Maya in shelf.mel