Go to: Synopsis. Return value. MEL examples.

Synopsis

string[] lsType( string $type )

Return object names of the given type. The end of the return array is marked with the special string "<done>" for two reasons. There is no way to return an empty array, and the array values are not cleared from call to call. This means that values from a previous call will be returned on the next call.

Return value

None

Arguments

Variable Name Variable Type Description
$typestringType of object to look for

MEL examples

	sphere -n sphere1;
	sphere -n sphere2;
	lsType("nurbsSurface");
	// Result: sphere1Shape sphere2Shape //