Copy link to clipboard
Copied
Hello all
Just getting started with scripts and JS, so I apologize if this is a dumb question.
How would I add a Gaussian Blur (amount 26) filter to my active layer using a script?
I have been experimenting but have not gotten it to work, thank you all in advance.
1 Correct answer
I still think looking at your current code would be best, however, without knowing where you are going wrong, the following diagram should hopefully help:
However, as the filter uses values in pixels, it is probably better to add further code to set pixels as the unit rather than just assume. This is probably OK for a simple filter, however, when resizing an image it pays to be specific.
Explore related tutorials & articles
Copy link to clipboard
Copied
Post your code, that is the best way to get feedback and learn.
Copy link to clipboard
Copied
I still think looking at your current code would be best, however, without knowing where you are going wrong, the following diagram should hopefully help:
However, as the filter uses values in pixels, it is probably better to add further code to set pixels as the unit rather than just assume. This is probably OK for a simple filter, however, when resizing an image it pays to be specific.
Copy link to clipboard
Copied
Thank you so so much! That diagram definitely makes more sense now.
Copy link to clipboard
Copied
They can be frustrating, however, they are the official references:
https://www.adobe.com/devnet/photoshop/scripting.html

