Photoshop Scripting - Update Layers
Hi there,
I am writing my first few Photoshop scripts and cannot figure out what would seem trivial tasks to do manually.
Firstly, how do you copy smart filters from sourceLayerRef to destLayerRef?
Secondly, is there a way to update a layer's pixels in place, preserving all other properties like, blend mode, opacity, layer effects, layer masks etc? I was hoping for something like destLayerRef.channels = sourceLayerRef.channels (or .rgb, .pixels, . contents?) but can only see copy & paste which is error prone when a layer mask is present.
Finally, how do you reference a sourceLayerRef's mask (raster)?
As an aside, I am familiar with scripting (javascript, php & maxscript) for other applications but have found the methods exposed to extendscript tend to be rather limited and getting complex tasks done often relies on the use of the ScriptListener plugin to create strange non-human readable actions. Does anyone else think that or am I going about my scripts in the wrong way?
Hope someone can get me on the right track!
Cheers,
Olly
