Photoshop JavaScript: Delete all guides?

Issue

I can only find out a way to remove a single guide from the layout:

activeDocument.guides[0].remove();

This targets a single guide using an index. Isn’t there a menu I can call to clear all guides at once?

Solution

You can use activeDocument.guides.removeAll()

Answered By – Juan Mendes

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published