• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is there an event that is triggered whenever a brush stroke is made?

Enthusiast ,
May 22, 2011 May 22, 2011

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

TOPICS
Actions and scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 22, 2011 May 22, 2011

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.....

Votes

Translate

Translate
Adobe
Community Expert ,
May 22, 2011 May 22, 2011

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.....

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 23, 2011 May 23, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 30, 2016 Jan 30, 2016

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2011 May 23, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 23, 2011 May 23, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2011 May 23, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 27, 2011 May 27, 2011

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 30, 2016 Jan 30, 2016

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines