This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function _dos(cmd){ | |
| var ret=[]; | |
| if(cmd=="") return(ret); | |
| var wsh = XSIFactory.CreateActiveXObject('WScript.Shell'); | |
| var tmp = wsh.ExpandEnvironmentStrings("%TEMP%"); | |
| var fn = tmp+"\\_log_dos_return.txt"; | |
| var er = wsh.Run("cmd /c "+cmd+" > " + fn, 0, true); | |
| if(er) return(ret); | |
| var fs = XSIFactory.CreateObject('Scripting.FileSystemObject'); | |
| if(!fs.FileExists(fn)) return(ret); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MApiVersion | |
| app api | |
| maya | |
| 6.5 650 | |
| 8.5 850 | |
| 7.0 700 | |
| 8.0 800 | |
| 2008 200806 200800? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // cs3 to cc2014 | |
| // | |
| function _aepVer(fileObj) | |
| { | |
| var _code = "" | |
| +"@JSXBIN@[email protected]@MyBbyBn0ABNAnAMAbyBn0ASJCnASzDjSjFjUBAncfftOyFZFnAVBf0AhzBhBCCzKj" | |
| +"JjOjTjUjBjOjDjFjPjGDVzBjGEfFjzEiGjJjMjFFfnnnOyGZGnAVBf0ACzChBhdGnEXzLjUjPiMjPjX" | |
| +"jFjSiDjBjTjFHfXzBhQIfEXzFjTjMjJjDjFJfEXzFjTjQjMjJjUKfXzEjOjBjNjFLfVEfFRBFeBhOff" | |
| +"RBFdyBffnfeDjBjFjQnnOyHZHnAVBf0AhCXzGjFjYjJjTjUjTMfVEfFnOyJZJnAVBf0AhCEXzEjPjQj" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc _calcVolumeAndCOM() | |
| { | |
| string $shps[]=`listRelatives -pa -ni -s -type "mesh"`; | |
| for($s in $shps){ | |
| float $vol=0; | |
| vector $com=<<0, 0, 0>>; | |
| vector $vt[]=`xform -q -ws -t ($s+".vtx[*]")`; | |
| int $nf=`getAttr -s ($s+".fc")`; | |
| for($i=0; $i<$nf; $i++){ | |
| string $b[]=`polyInfo -faceToVertex ($s+".f["+$i+"]")`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // _optimizeMatTex | |
| // | |
| //----------------------------------- | |
| proc string _getProfileAttr(string $plug) | |
| { | |
| string $typ=`getAttr -type $plug`; | |
| string $cnt[]=`listConnections -s 1 -d 0 -p 1 -c 0 $plug`; | |
| if(size($cnt)){ | |
| string $buf[]={}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc q(){q;}q; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnDate] | |
| @="NewFolderBasedOnDate" | |
| [HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnDate\ShellNew] | |
| "Command"="cmd /d /e:on /c if not exist \"%1\\..\\%%date:/=%%\" mkdir \"%1\\..\\%%date:/=%%\"" | |
| "nullfile"=hex: | |
| [HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnDate] | |
| "FriendlyTypeName"="Folder (Date)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnDate] | |
| [-HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnDate] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnTimestamp] | |
| @="NewFolderBasedOnTimestamp" | |
| [HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnTimestamp\ShellNew] | |
| "Command"="cmd /d /e:on /c for /f \"tokens=1-7 delims=.,\\:/\" %%A in (\"%%date%%.%%time%%\") do for /f \"tokens=*\" %%a in (\"%1\") do if not exist \"%%~dpa\\%%A%%B%%C_%%D%%E_%%F%%G\" mkdir \"%%~dpa\\%%A%%B%%C_%%D%%E_%%F.%%G\"" | |
| "nullfile"=hex: | |
| [HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp] | |
| "FriendlyTypeName"="Folder (Timestamp)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnTimestamp] | |
| [-HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp] |