In the Script DAT you are presented with this:
def onCook(scriptOp):
scriptOp.clear()
#scriptOp.copy(scriptOp.inputs[0]) # no need to call .clear() above when copying
#scriptOp.insertRow(['color', 'size', 'shape'], 0)
#scriptOp.appendRow(['red', '3', 'square'])
#scriptOp[1,0] += '**'
return
but in the Script SOP you only get:
def onCook(scriptOp):
scriptOp.clear()
return
It would be nice if there was example code for how to duplicate the entire input, add attributes, etc.