Can someone help me optimize this prepress script?
This is an automatic imposition script for printing
It automatically calculates the number of horizontal and vertical imposition plates
and covers the canvas, but the original script does not support masking objects.
So I used a very dumb way to achieve masked objects by automatically creating outer borders for the objects and checking the box for stitching with content.
But in practice this is very slow and laggy.
Maybe there's something wrong with the way I'm doing it, it's always unresponsive for a while, and then it feels laggy.
Thanks to any seniors who can give me advice on how to modify
