Scissors segment editor effects from a script

Hi Andras,
How to get the parameter value of the OTSU method for thresholding an image