Created
March 6, 2015 11:46
-
-
Save bomberstudios/8647a7a02d27d6bf2ff7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Changing the corner radius for all points in a layer | |
// Select a single layer and run this | |
var s = selection[0].firstLayer() | |
var points = s.allCurvePoints() | |
for(var i=0; i < points.count(); i++){ | |
var currentPoint = points.objectAtIndex(i) | |
log(currentPoint.cornerRadius()) | |
currentPoint.setCornerRadius(i*10) | |
} | |
try { | |
s.resetPointsBasedOnUserInteraction() | |
} catch (e) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment