他,一个艺术院的大二学生,是什么让他开了一间画室

如题所述

第1个回答  2016-11-10
global string $gShelfTopLevel;
string $currentShelf = `tabLayout -q -st $gShelfTopLevel`;
string $rootPath=`InstallLocationPath`;
string $pluginPath=$rootPath+"plug-ins/";
string $scriptPath=$rootPath+"scripts/";
string $iconsPath=$rootPath+"icons/";
string $filesPath=$rootPath+"files/";

string $MocapRigPyPath=$scriptPath+"sdd_mocapRig.py";
//string $MRIkFkPyPath=$scriptPath+"sdd_mrIkFkSwitch.py";

shelfButton
-command ("execfile('"+$MocapRigPyPath+"')\r\nsdd_mocapRig('"+$rootPath+"')")
-annotation $pluginPath
-label ""
-imageOverlayLabel "mRig"
-image ($iconsPath+"pythonFamily.xpm")
-image1 ($iconsPath+"pythonFamily.xpm")
-sourceType "python"
-parent $currentShelf;

/*
shelfButton
-command ("execfile('"+$MRIkFkPyPath+"')")
-annotation $pluginPath
-label ""
-imageOverlayLabel "IkFk"
-image ($iconsPath+"pythonFamily.xpm")
-image1 ($iconsPath+"pythonFamily.xpm")
-sourceType "python"
-parent $currentShelf;
*/

global proc string InstallLocationPath ()
{
string $whatIs=`whatIs InstallLocationPath`;
string $fullPath=`substring $whatIs 25 999`;
string $buffer[];
int $numTok=`tokenize $fullPath "/" $buffer`;
int $numLetters=size($fullPath);
int $numLettersLastFolder=size($buffer[$numTok-1]);
string $scriptLocation=`substring $fullPath 1 ($numLetters-$numLettersLastFolder)`;
return $scriptLocation;
}