i already found a small script thanks even though, string $sel[] = `ls -sl`; vector $positions[]; string $command = "curve "; int $i = 0; for($i = 0; $i<size($sel); $i++) { $positions[$i] = `pointPosition $sel[$i]`; $command = $command+"-p "+$positions[$i]+" "; } eval($command);