A work in progress.
I am making a node setup for a despill with the difference added back on top.
Five Nodes and no connection:
curNode = nuke.selectedNodes()
mergediff = nuke.nodes.Merge2()
mergediff.knob('operation').setValue('difference')
mergeplus = nuke.nodes.Merge2()
mergeplus.knob('operation').setValue('plus')
sat = nuke.nodes.Saturation()
sat.knob('saturation').setValue('0')
ibk = nuke.nodes.IBKGizmoV3()
Have a good one,
michaelb