- https://devhints.io/ - cheatsheets
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
/* | |
Get_Centroid_coordinates.jsx | |
A Javascript for Adobe Photoshop 2017. | |
Purpose: Find the centroid (center of gravity) of SVG path and point by guidelines. | |
Based on formula for finding Centroid of non-self-intersecting closed polygon | |
To Use: Select layer which includes normal path. Call the script. | |
Author: Ivan Grekov | |
*/ | |
// reset unites for proper navigation & sizes |