Skip to content

Instantly share code, notes, and snippets.

@bomberstudios
Created March 6, 2015 11:46
Show Gist options
  • Save bomberstudios/8647a7a02d27d6bf2ff7 to your computer and use it in GitHub Desktop.
Save bomberstudios/8647a7a02d27d6bf2ff7 to your computer and use it in GitHub Desktop.
// 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