Copy link to clipboard
Copied
Actually, to be more precise, I'm hoping to be able to intercept each brush "stamp" - I don't know how to call it. When you draw with a brush, your "spacing" parameter controls how many pixels between each brush "stamp". I'd like my script to be able to do something each time the pixels of the active layer are about to be modified by each brush "stamp".
Is this even possible with Scripting?
Thanks in advance
T
I would think not. The scripting guide suggest using the scriptlistner plugin to capture the events codes. Brush stroks can not be recorded so the plugin would not generate and code for a brush stroke. Also in the java scripting reference there is a list of event id there is none fror brush stroke in it.....
Copy link to clipboard
Copied
I would think not. The scripting guide suggest using the scriptlistner plugin to capture the events codes. Brush stroks can not be recorded so the plugin would not generate and code for a brush stroke. Also in the java scripting reference there is a list of event id there is none fror brush stroke in it.....
Copy link to clipboard
Copied
Also in the java scripting reference there is a list of event id there is none fror brush stroke in it.....
Well there was one for "Draw" which I had hoped would be related to brush strokes.
Copy link to clipboard
Copied
I don't understand this. My extension is lacking the brush event badly. Is it possible to request a BRUSH_STROKE, or LAYERCONTENT_CHANGE JSONEvent as a new feature from the developers?
Copy link to clipboard
Copied
Like JJMack mentioned Brush-strokes are unrecordable, so I’m afraid you are out of luck on this.
But your description seems somewhat vague – what are you trying to achieve?
Copy link to clipboard
Copied
But your description seems somewhat vague – what are you trying to achieve?
Photoshop has long lacked a Painter-style Image Hose. Every other paint program has it and it escapes me why Photoshop hasn't included something like that yet. My thought was to leverage the Clone Stamp tool and intercept each "stamp" by switching clone sources. That way, you could set up a document with your image "nozzles" on a transparent background, establish 5 or six different clone sources and then when drawing on your new document, the script would randomly select a different clone source, thus "stamping" down a randomized assortment of images. Since I'm not very experienced in C, the plugin route isn't an option for me. Alas, it looks like I won't be filling this gap myself. There is a pugin called PhotoSpray, but based on the website, the vendor doesn't look terribly professional or reputable and I question the quality of the plugin.
Copy link to clipboard
Copied
»Photoshop has long lacked a Painter-style Image Hose.«
Photoshop also lacks full color Brush Presets so the an image hose seems the smaller lack to me.
If I understand correctly the neighboring Feature Request Forum is on its way to irrelevance, but you could post a request there and here:
http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It's not exactly what you're looking for, but if it might help, I wrote an instancer script that takes random layers from a group and distributes them across points made with the Count Tool.
You can check it out here: Script I made: Instancer
I also have a companion script that generates Count Tool points from a layer with distinct blobs, so you can do something similar to what you're looking for if you use a brush that scatters dots, but it's a two-step process that doesn't happen in real-time.