Go to: Synopsis. Return value. Keywords. MEL examples.
melInfo
melInfo is NOT undoable, NOT queryable, and NOT editable.
This command returns the names of all global MEL procedures that are currently defined as a string array. The user can query the definition of each MEL procedure using the "whatIs" command.string[] | procedure names |
// 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;