Batch Processing

 

Scripting Or Cloak Mode?

The Plugin version of LightMachine 2 now offers scripting support in Photoshop, Paint Shop Pro and Debabelizer. This means that you can record the effect settings in actions/scripts in these applications. The recorded action or script can then be used for batch processing. LightMachine will automatically suppress the dialog and immediately render the effect to the image. You need to record a new action or script for every LightMachine effect that you want to apply during batch processing.

If you are using another application under Windows (e.g. Fireworks), the LightMachine dialog is not automatically suppressed during batch processing. So you need to use Cloak Mode, which suppresses the dialog when activated. Corel Photo-Paint on the other hand automatically suppresses the LightMachine dialog when called from a script, so you do not need to activate Cloak Mode for it. In all of these cases you only need to record a single action or script with LightMachine and can always use it during batch processing, because there are no effect settings recorded in the action or script.

Even if you are using LightMachine in Photoshop, Paint Shop Pro and Debabelizer, you can still decide to use Cloak Mode. If Cloak Mode is activated, LightMachine will ignore the scripting values and apply the last used setting. Using Cloak Mode has the advantage that you do not need to record a new action or script for every new LightMachine effect that you want to apply, but you also always need to set a new effect in LightMachine before you can start with batch processing.

If you want to use LightMachine as a smart filter in Photoshop CS3, CS4 and CS5, please deactivate Cloak Mode before batch processing, otherwise LightMachine will not work properly as a smart filter.

 

Cloak Mode

If you decided to use Cloak Mode, you can activate it by holding down the CTRL key and clicking on the Cancel button. The message box displayed below will appear. After pressing YES, the current settings will be saved and LightMachine will be exited without rendering the effect to the image.

When you run LightMachine again by choosing it from the Filter menu of your image application, the dialog of LightMachine won't show up and the previous settings will be rendered immediately to the image. So if you have the On Start Up combo box on the Prefs tab sheet set to "Default Settings", this setting is ignored in Cloak Mode and the previous settings are applied. However, if you have On Start Up set to "Logged Settings", LightMachine will search for automatically logged settings for each image and apply them if they are available.

After you have processed your series of photos in Cloak Mode you can uncloak LightMachine again. To do that, keep the the Shift key pressed down when selecting LightMachine from the filter menu in your image application. This will display the LightMachine dialog again and exit Cloak Mode.

Alternatively you can also delete the file cloakfb.ini in the LightMachine folder. But this is just an emergency strategy.

 

Batch Processing in Photoshop

Photoshop offers a Batch feature on its File > Automate menu. This feature lets you batch process a series of images with the help of a Photoshop action. So if you want to batch process images in Photoshop you only need to record an action that contains LightMachine.




Recording an action with LightMachine:

1. Open an image in Photoshop.

2. Switch to the Actions panel on the right and create a new action by using the New Action button or the pop-up panel menu.

3. Choose LightMachine from the Filter menu.

4. Now adjust the effect settings in LightMachine, so that they are recorded in the action.

5. Press OK on the LightMachine dialog.

6. Press the Stop button on the Action panel. Now you have your LightMachine action that you can use with File > Automate > Batch.



Batch processing a series of images with LightMachine:

1. Open one of the images from the image series.

2. Select File > Automate > Batch.

3. In the Batch dialog make sure that your LightMachine action is selected.

4. Set the other batch options and click on OK to run it.


You can record a new action for each sharpening task that requires a different LightMachine effect. On the other hand if you do not want to create a collection of different actions, you can also change the LightMachine settings that are recorded in the action by clicking on the LightMachine item in the Actions panel, changing the settings in the appearing LightMachine dialog and pressing OK. If you want to apply individual LightMachine settings to each image during batch processing, please activate the small dialog icon next to the LightMachine entry in the Action panel. This will make the LightMachine dialog appear for every new image.

On the other hand if you want to use LightMachine in Cloak Mode for batch processing a series of images, you only can use any action that runs LightMachine. First run LightMachine, adjust the settings and activate Cloak Mode by holding down the Ctrl key when clicking on the Cancel key. Then continue as mentioned above with Photoshop's Batch tool. To uncloak LightMachine again afterwards please hold down the Shift key while running LightMachine from the menu.

Batch Processing in Paint Shop Pro

Paint Shop Pro (Version 8 and higher) offers a Process feature on the File > Batch menu for batch processing a series of images with the help of a PSP script. Recording such a script is quite easy.


Recording a PSP script with LightMachine:

1. Open an image in PSP.

2. Select File > Script > Start Recording.

3. Choose LightMachine from the Effects > Plugins menu.

4. Now need to adjust the effect settings in LightMachine, so that they are recorded in the script.

5. Press OK on the LightMachine dialog.

6. Select File > Script > Stop Recording and save the script. Now you have a LightMachine action that you can use with File > Batch > Process.


Batch processing a series of images with LightMachine:

1. Open one of the images from the image series.

2. Select File > Batch > Process or File > Batch Process.

3. In the Batch Process dialog choose your LightMachine script with the Browse button from the Script frame.

4. Set the other batch options and click on the Start button to run it.

You need to record a new script for every LightMachine effect that you want to apply during batch processing. You can create a collection of scripts with various LightMachine effect and use these scripts as you need. If you want to apply individual LightMachine settings to each image during batch processing, please deactivate the "Run script in silent mode" check box in the Batch Process dialog. This will make the LightMachine dialog appear for every new image.

On the other hand if you want to use LightMachine in Cloak Mode for batch processing a series of images, you only can use any script that runs LightMachine. First run LightMachine, adjust the settings and activate Cloak Mode by holding down the Ctrl key when clicking on the Cancel key. Then continue as mentioned above with PSP's Batch Process tool. To uncloak LightMachine again afterwards please hold down the Shift key while running LightMachine from the menu.

 

Batch Processing in Other Applications

There are some other applications that support batch processing with the help of plugins, e.g. Fireworks, Debabelizer and Photo-Paint. Basically batch processing in other applications works the same as in Photoshop or Paint Shop Pro. In Fireworks you need to record a script and use Cloak Mode for batch processing. In Photo-Paint you need to record an script, but do not need to use Cloak Mode, because it already automatically suppresses the LightMachine dialog. If you use LightMachine 2 in Debabelizer, you also do not need to activate Cloak Mode.