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!
17 Responses
Pro
Mac Tyler
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)
4 months ago
This is great! Thanks for taking the time putting this together. Will use this a lot.
4 months ago
Pro
Anders Drage
You are a legend!
4 months ago
Pro
Kamil Khadeyev
Useful. Thanks.
4 months ago
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!
4 months ago
Pro
Jean-Marc Denis
So useful, thanks a lot man!
4 months ago
Pro
Mac Tyler
np!
4 months ago
Pro
Mac Tyler
@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.
4 months ago
Pro
AndyTheJoker
MY HERO :D
4 months ago
Pro
Brian Benitez
Whoa, this is sick man! Thanks! You're awesome!!
4 months ago
Pro
Bjango ✎ Marc Edwards
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?
4 months ago
Pro
Mac Tyler
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.
4 months ago
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!
4 months ago
Pro
Bjango ✎ Marc Edwards
@Mac Tyler I've fired off an email. Would be great to chat.
4 months ago
Pro
Ronald Ravelo
The selection idea is great! How about adding round corners to a selected shape?
2 months ago
Pro
Chris Casey
very handy. thanks for taking the time to make, record the demonstration and share your work
about 1 month ago
Pro
Mac Tyler
Thanks chris!
about 1 month ago