Delete Curve Point by Script


does anyone know the correct syntax for deleting curve point selections?

for polygons it works like this

 elif face_sel:

how would this have to look for curve points?

i tried this but it doesn’t work

elif curve_sel:

cheers christian

oh, what i’m looking for is just the right command for the first part
“curve_sel” seems to be wrong … i also tried vert_sel but it is wrong as well and i’ve got no clue for what to search on google or the blender api

okay, it doesn#t work because i have another command that deals with vert before obviously :confused:

if i have a polygon vertex selection i would like this to happen

if vert_sel:

if i have a curve selection this:

elif vert_sel:

is this possible in one single script?

sorry for the confusion