melInfo
melInfo は、取り消し不可能、照会不可能、および編集不可能です。
このコマンドは、現在文字配列として定義されているすべてのグローバル MEL プロシージャ名を返します。「whatIs」コマンドを使用すると、各 MEL プロシージャの定義を照会できます。| string[] | プロシージャ名 |
// Query informaton about every MEL procedure and command defined. For
// each procedure/command, use the whatIs command to print a summary.
// Output the result to a file on disc.
//
string $procs[] = `melInfo`;
string $fileName = ( `internalVar -userTmpDir` + "mel.tmp" );
string $lines[];
int $i;
int $numProcs = size( $procs );
for ( $i = 0; $i < $numProcs; $i++ )
{
string $s = `whatIs $procs[$i]`;
$lines[$i] = $procs[$i] + " : " + $s;
}
int $fileId = `fopen $fileName "w"`;
for ( $i = 0; $i < $numProcs; $i++ )
{
fprint $fileId ( $lines[$i] + "\n" );
}
fclose $fileId;