andrejilderda / Sketch-Resize-Commands

A Sketch plugin that lets you resize and reposition objects by using simple arithmetic commands, like `b+20,lr+20`. Multiple objects are supported.
31 stars 1 forks source link
sketch sketch-plugin

Resize Commands for Sketch

A Sketch plugin that lets you resize and reposition objects by using simple arithmetic commands, like b+20,lr+20. Multiple objects are supported.

Demo

Using Resize Commands

How to use

Press Ctrl + shift + q to open up a prompt in which you can enter your commands to resize your selection.

Example usage

Multiple commands

You can easily combine multiple commands by separating them with a , or use multiple directions followed by an operator, like so:

Valid directions are:

Direction
t Top
b Bottom
r Right
l Left
a All directions
w Width
h Height
x X-axis
y Y-axis
Operator
+ Plus
- Minus
* Multiply
= Set w or h
/ Divide
% Percentage

Installation

  1. Download the plugin.
  2. Unzip & run ‘Resize Commands.sketchplugin’ to install

Thanks to

Matt Stow, who did the heavy lifting for this plugin. His Fireworks plugin Math Resize I have used for a long time!

Feedback

If you find any issues or have any suggestions, please create an issue. Pull requests are welcome also!

Created by

Andre Jilderda @ Angi Studio, The Hague (NL)