something like this works: global proc GetSmallObjects( float $xLimit, float $yLimit, float $zLimit ){ string $sceneObjs[] = ` ls -l `; where you run it from the command line like this: GetSmallObjects( 1, 2, 3); where the numbers are the x, y, z, sizes