This is a really simple script, the only thing it does is to set the weight of the currently selected points to 100%.
main {
selmode(DIRECT);
editbegin();
vmap = VMap(VMWEIGHT,0) || error(“Please select a weight map first.”);
foreach(sp, points) {
vmap.setValue(sp, 1.0);
}
editend();
}