based partial understanding if your problem i suggest
name locators and a controls in way that it is easy drive locator name from control for example
locator name point1Cntrl_Loc
control name point1Cntrl
now on button define function
$selectionList = ls -selection
;
for ($item in $selectionList)
{
string $parentName = $item+"_Loc";
parent $item $parentName;
}
here one has to select all controls and then press button other wise you can use your own custom rather than driving it form selection eg:
string $selectionList[] = {"point1Cntrl", "point2Cntrl"}
for ($item in $selectionList)
{
string $parentName = $item+"_Loc";
parent $item $parentName;
}
again i never fully understand what you are trying to achieve
if new to mel than shift to python as soon as possible it is easy and have hundred ways to achiev task you are talking about and a whole lot of reference material