Hope this helps, the problem is that the script doesn't know witch side to select but it will select one side, if it's the wrong one you just have to use Inverse Selection(Ctrl+Shift+I) string $selE[] =`ls -sl -fl`;int $selTyp = `selectType -q -meshComponents`;string $temp[];tokenize $selE[0] "." $temp;string $theObj =…