Yummygum were on Twitter yesterday searching for a Sketch plugin to generate a shape based off of specific user-inputted dimensions. As it happened, there wasn’t one. So I built one.
Specify has a couple of nice features that the Photoshop one doesn’t:
- If you have a layer selected, it will automatically set the initial
yvalues to those of the selected layer.
- It supports Sketch’s differently-sized-border-radii syntax of, for example,
4/4/0/0for top left
4, top right
4, bottom right
0, bottom left
The source for it is up on GitHub, along with the installation instructions and more information on customisation. The JS is fairly well commented too if you want to go and have a look at how it works.