Faster item copy in Illustrator using scripting

One thing I wish it was better at was making an array of objects based on selection. Here is a script to automatically do it for you. You can use move and transform but it involves a lot of math and isn’t very fast. This is a more efficient way of doing so.
walkthrough on how to use it here: http://vimeo.com/76484456
the script:
https://github.com/hilukasz/wulib/blob/master/duplicateItemsWithMargin.jsx
Place the script in:
/Applications/Adobe Illustrator CC/Presets.localized/en_US/Scripts
Now it will load into the menu when you reboot Illustrator
ok go make cool wireframes!

Written by Łukasz Wieczorek
Related protips
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside