PSPX9 recorded script "Runs" OK but Batch does nothing

Moderator: Kathy_9

Post Reply
SJS
Posts: 107
Joined: Thu May 26, 2011 1:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell Inc. 0KWVT8 A03
processor: 3.60 GZ Intel Core i7-4790
ram: 16336 MB
Video Card: NVIDIA GeForce GTX 750 Ti
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 3974.61 GB
Monitor/Display Make & Model: DELL U2412M
Corel programs: PaintshopPro X8
Location: Washington State, USA
Contact:

PSPX9 recorded script "Runs" OK but Batch does nothing

Post by SJS »

I recorded a script to apply an effect, then to reduce the saturation. When I run this on an open file, single step, it works fine, silently or interactively.

But when I use the script in Batch Process my new files are created/saved without either action: no changes are applied.

Windows 10, PSP X9 19.1.0.29 x64

What do I need to change in my recorded script for Batch Processing?

from PSPApp import *

def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': u'',
'Host': u'PaintShop Pro',
'Host Version': u'19.00'
}

def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Default,
'Version': ((19,0,0),1)
}
})

# Colored Foil
App.Do( Environment, 'ColoredFoil', {
'Angle': 250,
'Blur': 12,
'Color': (70,43,20),
'Detail': 16,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Default,
'Version': ((19,0,0),1)
}
})

# Color Adjust HSL
App.Do( Environment, 'ColorAdjustHSL', {
'HSL': {
'Colorize': False,
'Master': (0,-22,2),
'MasterColorize': (89,35,-30),
'Red': (0,0,0,315,345,15,45),
'Green': (0,0,0,75,105,135,165),
'Blue': (0,0,0,195,225,255,285),
'Cyan': (0,0,0,135,165,195,225),
'Magenta': (0,0,0,255,285,315,345),
'Yellow': (0,0,0,15,45,75,105)
},
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Default,
'Version': ((19,0,0),1)
}
})
cosmicDread
Posts: 39
Joined: Fri Aug 26, 2016 7:10 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: MSI MPG Z390 Gaming PRO
processor: Intel Core i9-9900K
ram: 32 GB
Video Card: GeForce GTX 1080 Ti
Hard_Drive_Capacity: 6 TB
Monitor/Display Make & Model: Acer Predator X34
Corel programs: PaintShop X5, X6, X8, X9, '18, '19, '20
Location: Lake Havasu City, Arizona, USA
Contact:

Re: PSPX9 recorded script "Runs" OK but Batch does nothing

Post by cosmicDread »

I was able to get your script to work on the first run with a batch process. 8) I've never done batch process before. :?

Here are the steps I took:
(1) Selected File / Batch Process...
(2) Added three .jpg files using the Add button. The images were in the same folder.
(3) Clicked the Next button.
(4) Clicked the Script button on the right-side of the Batch Process window.
(5) Selected the script that you posted.
(6) Selected the Next button.
(7)
Under Destination Folder:, I have New selected.
Under Filename:, I have Original selected.
Under File format:, I selected PNG.
(8) Selected the Start button.

Maybe there is something going on that you don't understand. :?:
batchprocess.png
Best wishes,
Charles
When the majority of the people on Earth are wanting the Galactic Federation to show themselves, then they will.
Post Reply