There are a lot of examples available in the SDK. If you just need those commands that deal with points and selections you'll not have to learn much. Basically these line do the job:
main (doc, op)
{
var point_count=op->GetPointCount();
var point_selection=op->GetPointSelection();
var i;
for (i=0; i
{
if (point_selection->IsSelected(i))
{
//You reach these lines if the point with the index "i" is selected
// Do something with this point here
}
}
}
I just wrote this without checking if it works, but it should :-)
Kind regards,
Arndt "Vreelonaut" von Koenigsmarck
http://www.vreel-3d.de
http://www.vonkoenigsmarck.de
CINEMA 4D V8 Studio Bundle