MEL Report
From scripting
global proc string Report(float $Perc){ //0001D LLC 2015 Nick Pisca //float $Perc = 66.3; string $fff = `file -q -sn -shortName`; string $fffe = substring($fff, 0, (size($fff)-3)); string $ffft = $fffe + ".txt"; string $path = "c:\\xml"; string $fpath = $path + "\\" + $ffft; if ($Perc < 99.9) { $fileId=`fopen $fpath "w"`; fprint $fileId (string($Perc) + "% Maya|" + $fffe); fclose $fileId; } else { int $fileExists = `filetest -f $fpath`; if ($fileExists == 1) { system ( "del " + $fpath); } } }
More information on MEL scripting, read YSYT.