So I'm throwing up the script for people to try out and report back issues they have with it etc. Let me know if there are any other features you would like me to add or even ideas for completely different scripts etc.
Place the file into the following folder:
Mac: Applications/Adobe Photoshop CSx/Presets/Scripts/
Windows: C:\Program Files\Adobe\Photoshop CSx\Preset\Scripts
Then restart photoshop and it will be under: File>Scripts>RoundRectScript.jsxbin
Assign a shortcut in photoshop or use keyboard maestro to assign one, (highly recommend keyboard maestro)
Pixel perfect! Very cool, if I could make one suggestion it would be to make it somehow be generated by dragging the round rectangle tool freehand ( snap to pixels) so you don't have to guess exact pixel size if that makes sense. Thanks for sharing!
@Darpy I don't think I can make a script interact with photoshop that way :(. It's pretty much completely tied to keyboard shortcuts and no real way that I know of to interact with the mouse.
Bjango, I don't think so, but I can at least check some more. The way this script works at all is extremely hackish, although kamil has pointed out some potential new ways to do things. Although now that I think about it, yeah the selection thing could possibly work, off to try it!
EDIT: @Bjango ✎ Marc Edwards, @darby k-shields pretty sure I got what you guys wanted working. So I can drag a marquee selection and then it will just fill in those values as the default values in the roundrect box. Now in that case I'm assuming you want it to draw the shape right where the selection was and not in the middle of the canvas like it normally would? I can add that in too. Think it makes sense, this wont get in the way if you don't have a selection already. And if you did have a selection unintentionally you would just be writing over the old values anyways.
Potential Problems:
So what do you want me to do if your current selection is an odd number width or height? Do I draw everything on half pixels? Do I round to the nearest whole number or do I just give an error?
This is all so much fun ^_^, keep any suggestions coming.
wow this sounds great! Hmm.. I guess you could draw half pixels but the beauty of your script are those pixel perfect curves, maybe as long as everything rounds up/down consistently it might actually be usefully as a pixel snapping tool as well. either way, great stuff here man!
19 Responses
So I'm throwing up the script for people to try out and report back issues they have with it etc. Let me know if there are any other features you would like me to add or even ideas for completely different scripts etc.
If you have no idea what this is or does, watch the video
Download
Place the file into the following folder:
Mac: Applications/Adobe Photoshop CSx/Presets/Scripts/
Windows: C:\Program Files\Adobe\Photoshop CSx\Preset\Scripts
Then restart photoshop and it will be under: File>Scripts>RoundRectScript.jsxbin
Assign a shortcut in photoshop or use keyboard maestro to assign one, (highly recommend keyboard maestro)
over 1 year ago
This is great! Thanks for taking the time putting this together. Will use this a lot.
over 1 year ago
Pro
Anders Drage
You are a legend!
over 1 year ago
Useful. Thanks.
over 1 year ago
Pro
darby k-shields
Pixel perfect! Very cool, if I could make one suggestion it would be to make it somehow be generated by dragging the round rectangle tool freehand ( snap to pixels) so you don't have to guess exact pixel size if that makes sense. Thanks for sharing!
over 1 year ago
Pro
Jean-Marc Denis
So useful, thanks a lot man!
over 1 year ago
np!
over 1 year ago
@Darpy I don't think I can make a script interact with photoshop that way :(. It's pretty much completely tied to keyboard shortcuts and no real way that I know of to interact with the mouse.
over 1 year ago
Pro
Andrea Cau
MY HERO :D
over 1 year ago
Pro
Brian Benitez
Whoa, this is sick man! Thanks! You're awesome!!
over 1 year ago
Pro
Marc Edwards ✎ Bjango
Looks brilliant! Thanks. The download link isn't working for me though.
@darby k-shields @Mac Tyler Could it work via the current marquee selection? Make a selection, then run the script?
over 1 year ago
Bjango, I don't think so, but I can at least check some more. The way this script works at all is extremely hackish, although kamil has pointed out some potential new ways to do things. Although now that I think about it, yeah the selection thing could possibly work, off to try it!
Also download link should work although backup here in case:
http://mactyler.com/RoundRectScript.jsxbin
EDIT: @Bjango ✎ Marc Edwards, @darby k-shields pretty sure I got what you guys wanted working. So I can drag a marquee selection and then it will just fill in those values as the default values in the roundrect box. Now in that case I'm assuming you want it to draw the shape right where the selection was and not in the middle of the canvas like it normally would? I can add that in too. Think it makes sense, this wont get in the way if you don't have a selection already. And if you did have a selection unintentionally you would just be writing over the old values anyways.
Potential Problems:
So what do you want me to do if your current selection is an odd number width or height? Do I draw everything on half pixels? Do I round to the nearest whole number or do I just give an error?
This is all so much fun ^_^, keep any suggestions coming.
over 1 year ago
Pro
darby k-shields
wow this sounds great! Hmm.. I guess you could draw half pixels but the beauty of your script are those pixel perfect curves, maybe as long as everything rounds up/down consistently it might actually be usefully as a pixel snapping tool as well. either way, great stuff here man!
over 1 year ago
Pro
Marc Edwards ✎ Bjango
@Mac Tyler I've fired off an email. Would be great to chat.
over 1 year ago
The selection idea is great! How about adding round corners to a selected shape?
about 1 year ago
very handy. thanks for taking the time to make, record the demonstration and share your work
about 1 year ago
Thanks chris!
about 1 year ago
Pro
Ray
@Mac Tyler hello,this script is so cool,can you send the source code to me, i wanna learn how to do something like this.thank you!
:)
3 months ago
Pro
Court Kizer
Could you update this script to show to tell me the inner border radius value at the end of the script?
about 1 month ago