Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How to 'Stop' Action to use Healing Brush in Image Processor?

Explorer ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

I am using Image Processor to batch process ~600 images.

 

I have set a dialog popup for Levels and also for Crop.

 

Then a conditional resize according to orientation, then a sharpen.

 

All working - so far so good.

 

* Here is my issue * I want to lastly pause, to use the Healing Brush to remove any marks and dust spots.

 

I can get the Action to 'stop' to allow me to do this in single image mode (clicking 'play' to continue after the healing is completed) BUT this does not work when used in the Image Processor batch process, ie: saving of this image does not complete and the batch processing of the remaining unprocessed images ceases completely.

 

Any ideas what I'm doing wrong?

TOPICS
Actions and scripting, Windows

Views

204

Likes

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
Adobe Community Professional ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

It sound like your Action stop,  stops the Action and also stops the Script for you could use the healing brush on the current document.  After you used the healing bush. You were able to continue the Action by clicking on the Action Palette Play button  for the action was stopped position to the step after your stop step.   There is no way that I know of that a terminate script execution can be resumed. Restarting it would start the whole batch process  over again it would not pick up on the current after your resume actions play execution ends.

 

The first thing you did wrong was to have a batch processor include an action that has interactive steps.  That kills the automated batch processing humans intervention is required to continue the automated process.  The second thing you did wrong was you stopped the action and batch processor so you could use the healing brush on the current document.  You terminate the Image processor script. You ended the Batch Process.

JJMack

Likes

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
Explorer ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

quoteThe first thing you did wrong was to have a batch processor include an action that has interactive steps.  That kills the automated batch processing humans intervention is required to continue the automated process.

By @JJMack


Thanks, for your reply, but batch processing CAN include interactive steps. That's the point of having them. Pausing to adjust both Levels and Crop works just fine, then the batch continues without a problem.

 

quote

The second thing you did wrong was you stopped the action and batch processor so you could use the healing brush on the current document.  You terminate the Image processor script. You ended the Batch Process.


By @JJMack

 

I didn't manually stop the script, I added a stop to the action. As I said above, this works absolutely fine for some processes, but the batch will not resume after the Healing Brush.

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

These are two different concepts - dialog boxes (interactive steps) do not interrupt the playback of the action. Stop command - stops playback (and the script receives a message that the operation was interrupted by the user).

 

This is not a bug, this is a feature 🙂

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

Here is what I thougtht was happening.

 

If you did not stop the script then you would not be able to use the healing brush on the current  document being processed by the image Processor script that plays your Action on each image Processed.  When your Action execution ends the Image processor continues it image processing may resize the document and save 1 or 2, or 3 new images files close the current document and then open the next file to play your action on. If you did not manually stop the Script the action the Images Processor was playing  return an error code to the the script when you stopped the Action. I would have thought the Image Processor would just log the error and continue processing the other images in the batch. It  may be just  Batch and Image Processor Pro  do that. It look like the Image Processor just terminated on you, for you could use Photoshop UI to use the healing brush on the image the Image Processor script was processing The Image Processor script  was no longer running  Photoshop's UI was available for you to use the healing brush.   When you use an Automated process in Photoshop that Action, that script is given control of Photoshop.  Photoshop's  UI is not available for you to use till the Automated Process End.   If you Could use Photoshop UI  to use the healing brush the Automated Process you started has ended.   You Started the Images Processor script any you set  an option in its dialog to include using your Acton.  

 

Anyway  that is what I thought was happening.  I was wrong.   However, I was more right then I was wrong. I have never used doaction in a Photoshop Script.  I look at the Image Processor scripts code and saw it used the doaction method to play your action.  There is no return code look at.  So I create an action that I inserted  a stop or continue Stop message.I batch this action with Image Processor script.   It turns out If I used the stop Option  doaction terminates the Image Processor Script and there is no error message.   So your Stop terminated the Image Processor script. If I use the continue option the stop step is an interactive step the action continues and doaction does not terminate the script.

 

Here the code

if ( this.params["runaction"] ) {
  doAction( this.params["action"], this.params["actionset"] );
  app.activeDocument.flatten();
  app.activeDocument.bitsPerChannel = BitsPerChannelType.EIGHT;
  RemoveAlphaChannels();
}
var uniqueFileName = CreateUniqueFileName( subFolderText, fileNameNoPath, ".jpg" );
if ( ! IsFolderWritable( subFolderText ) ) {
   alert( strCannotWriteToFolder + File( subFolderText ).fsName );
} 
else {
   SaveAsJPEG( uniqueFileName, this.params["q"], this.params["icc"] );
}

 

JJMack

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

I have a script that allows you to work both in normal batch mode and to continue operations after stopping (you can set a stop either in the script settings or in the action itself - as convenient). To continue operations after stopping, you need to call the script again (for quick continuation, you can either assign a hotkey to the script in the menu, or write it to an action).

2021-08-31_09-23-18.png

https://github.com/boogalooper/Advanced-batch

 

The code is terrible in places, I would like to rewrite many points, but I have no time to do it, however, it has been working in my studio for more than 2 years without any problems and, in combination with actions, allows you to completely replace the standard batch and image processor.

 

Unfortunately, there is no help file. Most of the functions are intuitive, something can be understood in the process of working with it. The way to solve your problem with it in this video:

Likes

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
Explorer ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

Many thanks @jazz-y   I will give it a try 🙂

Likes

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
Explorer ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

It seems this may be a long-standing known issue... Photoshop action stop&go in Batch

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

I wouldn't call it an "issue" as such, it was designed to work this way, just as the script from jazz-y is designed to work differently.

Likes

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
Explorer ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

I pause a batch to do some interactivity (Levels, Crop, etc.) and the batch continues.

 

I pause a batch to do some other interactivity (Healing Brush) and the batch won't continue.

 

Strange 'design' if you ask me.

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

When it comes to actions, tools are different to other commands. Different types of interactive use.

 

You originally mentioned Image Processor, now mention Batch, so I'm not sure which is being used.

 

Anyway, my understanding has always been that Batch, Image Processor, Image Processor Pro, Picture Processor are often intended for non-interactive, "hands free", walk away and come back later processing. They can be used interactively to some degree, however it would depend on the action step on whether it breaks the batch or not.

 

So perhaps an expectation issue?

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

Image Processor Pro uses doaction Stopping an action in Image Processor Pro will terminate the image processor pro execution.

 

Jazz-y script is also terminated however the the Script has created a resume point information in case an action is stopped.    Like Actions with stop step can be resumed using  the Action Play button,   Jazz-y script can be started and it will use its resume point information  and be able to continue the batch process from where it  was terminated.   If jazz-y scripts ends normally the will be no resume point information. 

JJMack

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

Thanks JJMack, I have not tested what will break the IP/IPP/PP scripts. I rarely, if ever, use batch interactive action processing.

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

@JJMack , you explain everything so well, that even I understood how my script works 😉

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

Do it partially, every 50 files without batch. Open first part of files, play action that is going to stop (using stop item without dialog and continuation), brush on canvas, continue the action by assigned key that is going to save & close a file. Do the same on remaining 49 files, then open another part of 50 and so on.

 

Tip: to save a file without overwriting, create new document, start recording and save it in output folder. Stop recording. Such saving item won't be bound to any file, just its format and the folder it had to be saved in.

Likes

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
Adobe Community Professional ,
Aug 31, 2021 Aug 31, 2021

Copy link to clipboard

Copied

LATEST

Likes

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