Go to: Synopsis. Notes. Return value. MEL examples.
whatIs
string
whatIs is NOT undoable, NOT queryable, and NOT editable.
This command takes one string type argument and returns a string indicating whether the argument is a builtin "Command", a "Mel procedure", a "Script", or a variable. If it is a variable, the type of the variable is also given. If it is none of these things, whatIs returns the string "Unknown". If the argument is a Mel procedure or a script file, the path to the file containing the script or procedure is included in the return value.string | Argument type |
whatIs "sphere"; // Result: Command // whatIs "initToolBox"; // Result: Mel procedure found in: /u/mayauser/maya/scripts/initToolBox.mel // whatIs "kaosFieldTest"; // Result: Script found in: /u/mayauser/maya/scripts/kaosFieldTest.mel // whatIs "fdsafda"; // Result: Unknown // int $abc[42]; whatIs "$abc"; // Result: int[] variable // $s=`pwd`; whatIs "$s"; // Result: string variable //