Problem with scriptSOP.clear()

I am not sure if I am doing something wrong, but it seems to me like clear() method on ScriptSOP doesn’t exactly do what I expected. Following snippet is constantly moving points higher and higher (even thought I assumed clear() deletes all geometry on cook - and therefore no point information should be preserved between cooks).

def onCook(scriptOp):
	for i in range(20):
		pt = scriptOp.appendPoint()
		pt.P += tdu.Vector(0, 1, 0)

I am attaching simple scene with this example. I am not sure if this is a bug, or I just misunderstood something important :slight_smile:

scriptSop.1.toe (4.2 KB)