Last active
July 17, 2020 08:40
-
-
Save janily/3488e315d8c852e258a91e7b288c92ad to your computer and use it in GitHub Desktop.
auto layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let selection = doc.selectedLayers | |
selection.forEach(layer => { | |
var sel = layer.sketchObject | |
if (sel.resizeToFitChildrenWithOption) { | |
sel.resizeToFitChildrenWithOption(0); | |
} else { | |
sel.fixGeometryWithOptions(0); | |
} | |
//console.log(sel.layers()) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment