I would like to use the “Clear Outside” function (Edit → Clear Outside) in a macro, while having multiple shapes selected that have been created with the shape tools. Manually this can be done by holding the SHIFT key while drawing the shapes, so that all of them will be selected when using “Clear outside”.
As I said, this works manually and the code recorded by the macro recorder is as follows:
makeOval(420, 172, 873, 873); makeOval(1746, 226, 940, 940); setBackgroundColor(0, 0, 0); run("Clear Outside");
However, when running this code in a macro only the last shape will be selected and thus everything except the part of the image surrounded by that last shape will be cleared.
Thanks already for any suggestions!