Search found 20 matches

by AnilTejwani
Sat Jan 29, 2022 10:58 am
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6769

Re: Simulate Click with Brush

Hi, This post has been really helpful but i was wondering if it would be possible to create real brush clicks, instead of using external images as smartobjects. My case is I have a custom brush-shape and I want to use it as a single click at a specific position on the image. // clickBrush(100,200); ...
by AnilTejwani
Thu May 06, 2021 2:31 pm
Forum: Photoshop Scripting - General Discussion
Topic: Custom Tab in XMP / Photoshop File Info Modal
Replies: 2
Views: 3149

Re: Custom Tab in XMP / Photoshop File Info Modal

Kukurykus wrote: Mon Apr 26, 2021 6:55 pm I never saw any code that can do it.
Thanks.
by AnilTejwani
Thu May 06, 2021 2:30 pm
Forum: Photoshop Scripting - General Discussion
Topic: Possible Save "Custom Metadata" in Paths (not Layers)?
Replies: 3
Views: 3482

Re: Possible Save "Custom Metadata" in Paths (not Layers)?

Kukurykus wrote: Mon Apr 26, 2021 6:58 pm You mean pathItems? How that would work?
Thanks for the reply.

Yes I meant pathItems. Since I need to save some settings for each path, which is later on used by my own script.

Regards

Anil
by AnilTejwani
Mon Apr 26, 2021 12:45 pm
Forum: Photoshop Scripting - General Discussion
Topic: Possible Save "Custom Metadata" in Paths (not Layers)?
Replies: 3
Views: 3482

Possible Save "Custom Metadata" in Paths (not Layers)?

Hi Guys,
Is it possible to save metadata into Paths (not Layers)?
If yes, please provide some info or point me in right direction/link/etc.
Thanks in advance
Regards
by AnilTejwani
Mon Apr 26, 2021 12:43 pm
Forum: Photoshop Scripting - General Discussion
Topic: Custom Tab in XMP / Photoshop File Info Modal
Replies: 2
Views: 3149

Custom Tab in XMP / Photoshop File Info Modal

Hi Guys,
If you refer to the image below
photoshop-xmp-custom-info.png
photoshop-xmp-custom-info.png (32.37 KiB) Viewed 3149 times
Is it possible to have a custom tab? and to read/write our own tags/fields?
If yes, kindly point me in the right direction/link/etc.
Thanks in Advance.
Regards
by AnilTejwani
Tue Mar 05, 2019 5:54 am
Forum: Photoshop Scripts
Topic: Photoshop script to crop/canvas size by specific dimension
Replies: 3
Views: 9285

Re: Photoshop script to crop/canvas size by specific dimension

So, this image has the total size of 355x235mm. The red border has the size of 300x200mm. The script must read 300x200 in the file name. "a"x"b"_"c"x"d". No matter how many digits "a" and "b" have. I suspect that you can use "_" ...
by AnilTejwani
Tue Mar 05, 2019 5:31 am
Forum: Photoshop Scripting - General Discussion
Topic: Vector rectangle shape made with ExtendScript?
Replies: 2
Views: 6653

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.
by AnilTejwani
Tue Mar 05, 2019 4:55 am
Forum: Photoshop Scripting - General Discussion
Topic: Download and Open Web Image In Photoshop
Replies: 3
Views: 8384

Re: Download and Open Web Image In Photoshop

Here's some more discussion about that method/post from stackoverflow. So you should be able to do something like this: var file = new File('~/Desktop/kitty.jpg'); app.system("curl -o "+ file.fsName +" https://placekitten.com/200/300"); app.open( file ); file.remove(); That did ...
by AnilTejwani
Thu Feb 21, 2019 12:29 pm
Forum: Help Me
Topic: Get Drop Shadow and Pattern Overlay properties
Replies: 0
Views: 5437

Get Drop Shadow and Pattern Overlay properties

Hi, Is it possible to get (on the active layer app.activeDocument.activeLayer ) 1. what are the effects applied (example has 3 effects -> drop shadow, stroke and pattern overlay) 2. if yes to 1 above, possible to get properties of each ( lets say only drop shadow to start with, whats the opacity, bl...
by AnilTejwani
Tue Feb 19, 2019 2:35 pm
Forum: Help Me
Topic: Merge down every other layer in the layer stack?
Replies: 2
Views: 3756

Re: Merge down every other layer in the layer stack?

Try this script, // Script by Anil Tejwani | 19/Feb/2019 var ad = app.activeDocument; var l = ad.artLayers.length; // initial number of layers in the current doc at the start var tl = Math.floor(l/2); if(l%2 === 0){tl = tl-1;} for(var i = 0; i < tl; i++){ ad.activeLayer = ad.artLayers ; ad.activeLay...