Search found 2 matches

by horshack
Sat Feb 29, 2020 4:46 am
Forum: Photoshop Scripting - General Discussion
Topic: Setting active layers and applying filters
Replies: 3
Views: 4503

Re: Setting active layers and applying filters

Use 'select top layer' workaround instead of your current workaround: activeDocument.artLayers.add().remove() Thanks. Do you know the background as to why either workaround method is necessary? Is it just a bug in Adobe's scripting logic where the internal representation of the layer being active d...
by horshack
Fri Feb 28, 2020 6:09 pm
Forum: Photoshop Scripting - General Discussion
Topic: Setting active layers and applying filters
Replies: 3
Views: 4503

Setting active layers and applying filters

I wrote a script to apply a high-pass filter to every layer at the root layer hierarchy: function applyHighPassFilterAllLayers(radius) { var doc = activeDocument; var layers = activeDocument.layers; for (var layerIndex=0; layerIndex < layers.length; layerIndex++) { var layer = layers[layerIndex]; do...