Skip to main content
Inspiring
August 23, 2017
質問

How to record an action for healing brush/clone tool ?

  • August 23, 2017
  • 返信数 3.
  • 12088 ビュー

Hi,

most of you who know photoshop so well, know it's a fact it's impossible to record an healing brush or a stamp tool to apply. Also is knowns the patch tool is the only way to make theses kinds of corrections and record them but the patch tool is not doing a great job as the healing brush, if you know your stuff.

This situation is never the less something many can experience, shooting products and having the same spots, dust and scratch to remove over 600 images is a major challenge.

I know when photoshop cannot record tools or specific task then scripting is the way to go.

Will scripting can open new possibilities to use healing brush corrections over an image to apply over many others doing the same corrections ?

Also I'll post this in the request for new versions or updates coming up in photoshop family page.

Mark

このトピックへの返信は締め切られました。

返信数 3

Inspiring
March 13, 2018

I have found the answer.

Navigate to this page:

Record tools in actions in Photoshop

Though this is meant for CS6, it works in CC.

RedGreenBlue1024

Kukurykus
Legend
March 14, 2018

I did not know about possibility to record your drawings. Because I had grayed 'Allow Tool Recording' I had to find this:

CS6 How to set option Allow Tool Recording ? / in 19.1.2 you still have to disable ScriptListener to use it this option

Legend
March 15, 2018

I'm sorry for off topic: would you be able to add some Action Descriptor code to ScriptListener.8li that would be recorded to ScriptListenerJS.log? I have no idea what that could be. Just theorically something simple that could be used as regular code.


I do not quite understand what you mean. Specify in other words.

I once tried to write code for the Path Select Tool (Direct Select Tool, Pen Tool). I managed. But I can not exactly specify the coordinates of the click in order to get to the point, for example, to select a SubPath or a specific point.

In toolRecordingData, all coordinates are specified as Float Value (4 bytes) and they represent some screen coordinates or mouse coordinates. Their accuracy is clearly inadequate. So I "spat" on the whole thing.

c.pfaffenbichler
Community Expert
Community Expert
August 24, 2017
most of you who know photoshop so well, know it's a fact it's impossible to record an healing brush or a stamp tool to apply.

That is untrue as JJMack already pointed out.

But recording such Tools in an Action can be problematic … if I remember correctly changing the diameter of the tool tip for example does not get recorded.

As for the sensor dust I would recommend considering using Camera Raw for this – »Sync Settings« allows to transfer Spot Removal to multiple files for example.

JJMack
Community Expert
Community Expert
August 24, 2017

I seem to remember your right about the brush settings.  I also had problems with the amount of data recorded between slow machines an fast machine.  Action recorded on fast machine there was a great amount of data recorded amount for tool used the actions would overtax slow machines. Some Brush type require sampling a sourse spot first like the healing brush. So the depend on the image content which can also be a Problem recording tools.  I do not use tool recoding....

There are application for sensor dust problems beside ACR for cleaning up RAW files.  If your camera is expensive have your sensor cleaned professionally. I'm a coward  to use more then a bower on my old Canon my newer cannon has a sensor cleaner function.  I still manage to get dust spots at time and only use  ACR and the spot healing brush when needed.

JJMack
ALPHA3作成者
Inspiring
October 2, 2017

thanks guys for your input

Davide_Barranca12040269
Legend
August 23, 2017

Hi Mark,

if you have the very same spots to retouch over and over again (aka a dusty sensor), is it conceivable to create Path points and then Stroke them using the Spot Healing Brush Tool?

I know you can stroke entire paths, I've just tested single points and it works the same.

Hope this helps,

Davide

Davide Barranca - PS developer and authorwww.ps-scripting.com
JJMack
Community Expert
Community Expert
August 24, 2017

If you do not install Adobe Scriptlistener plug-in you should be able to record an action to do that.  You can enable tool recording to record your spot healing brush strokes.   When one install the Scriptlistener plug-in Adobe disables the tool recording feature in the Action palettes option.  You should include a  little script in the action like my  orient.jsx which will  rotate portrait images 90 to landscape so the spots will be in the same location,  Then apply the brush stroke and use orient.jsx a second time to rotate documents the were rotated back to portrait. However Adobe design in a bug in CC 2015.5 and CC 2017 you need to add garbage to the info metadata field first if you using the latest Photoshop versions to get around the bug. That can be done with a open document event handler, Use this script.

if (app.activeDocument.info.instructions.indexOf("Garbage") == -1 ) app.activeDocument.info.instructions = app.activeDocument.info.instructions + "Garbage";

JJMack
Davide_Barranca12040269
Legend
August 24, 2017

JJMack, do you think, in line of principle, that processing an Action that has recorded brush strokes in it through XBytor's Action2JSX could effectively produce the code of scripted brush strokes (among the rest)? I have to test it, but I've vague recollections of having done such experiment in the past resulting in a frozen Photoshop.

Besides, while there's code to programmatically enable/disable ScriptListener logging, I'm not aware of similar code to enable/disable brush strokes logging. Since an Action, as you pointed out, can record them – and SL works based on the same internal events system, there should be a way to do so... maybe. Or maybe not.

Davide Barranca - PS developer and authorwww.ps-scripting.com