Maya junk..

Do you ever find Maya is pasting a bunch of old nodes from a file you were working on a while back when you hit ‘CTRL+V’ over the UI? Seems to happen to me often enough so today I tracked down how to fix it, you can use the following MEL script to find the file it’s pasting from and delete it which will prevent it happening.. ahh that’s better..

string $tmpFile = "/maya_sceneClipBoard" ;
string $tmpdir = `getenv TMPDIR`;
string $filePath = ($tmpdir + $tmpFile);