Hello,
Is it possible to create a vector rectangle shape (rectangle tool) with ExtendScript?
I just want to create a 1px border around my PSD file and keep it vector in order to change the width later (to 2px for example).
Thanks for your help,
fred
Vector rectangle shape made with ExtendScript?
- joonaspaakko
- Posts: 6
- Joined: Mon Apr 16, 2018 8:53 am
- Location: Finland
Re: Vector rectangle shape made with ExtendScript?
Couple Action methods come to mind. Neither of these use shape layers but should be about as flexible in this case, if not more so...
Method #1
Method #2
Method #1
- Layer > New Fill Layer...
- Layer fill: 0
- Layer style: Stroke (inset)
Method #2
- Image > Trim... - (Check: Top left pixel color)
- Image > Canvas Size... (Note that you can make the action stop here so you can set the relative width and height every time you run the action)
-
- Posts: 20
- Joined: Wed Feb 22, 2017 5:37 pm
- Location: Paraguay
Re: Vector rectangle shape made with ExtendScript?
Here is script (zip fiel attached) that creates a 2px wide (stroke) rectangle around the full width/height of PSD.
Hope it helps.
Hope it helps.
- Attachments
-
- fill-full-rect.zip
- (1.37 KiB) Downloaded 952 times