| script (MEL) |
Only available in MEL |
searchPathArray
Go to: Synopsis. Return value. MEL examples.
searchPathArray( string $name, string $pathArray[] )
Looks for a readable file in the directories listed in pathArray.
Notes:
Intial white space in $name is ignored (chopped)
Name beginning with "/" are returned as-is
Empty string entries in pathArray are skipped, use . for cwd.
Path elements beginning in "$" are treated as environment variables.
Arguments
| Variable Name |
Variable type |
Description |
| $name | string | Name of the file being searched for
|
| $pathArray | string[] | Array of directory paths.
|
None
string $path[] = { ".", "$HOME/maya/projects/default" };
searchPathArray( "workspace.mel", $path );
Return to Autodesk Index