Scissors segment editor effects from a script

A post was split to a new topic: How to split segmentation the islands?