Help doing a script for drop down image

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
badger50
Posts: 21
Joined: Wed Nov 02, 2011 1:35 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit

Help doing a script for drop down image

Post by badger50 »

Very new to posting so please excuse if this is the second post.

I do work for a client and use a lot of drop shadows simular to the one below.
How can i create a script to do that ?

If I want the drop shadows on different sides do i need a second script /
Attachments
drop shadow pic
drop shadow pic
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Help doing a script for drop down image

Post by LeviFiction »

If it's only to run the Drop Shadow command with preset values. You can record the script easily.

Make sure you have the script toolbar open. (View -> Toolbas -> script)
On this toolbar will be a red (circle) button, click that to begin recording.
Now, apply the drop shadow andd any other effects that you need.
Hit the "Save" icon on the script toolbar.
Give it a name.

Now that script will perform all of the exact same steps you just recorded.

To run the script, select the script form the dropdown on the script toolbar. Then hit the blue (triangle) play button.

Scripts are only faster if you don't want to play with the settings at all. This gets tricky if all of your images are of different sizes and aspect ratios. Especially if you have to resize the canvas at all. Test your new script on several images before calling it good.

Now, as for your second question. It is possible to make the script ask which side to put the drop shadow on, but that usually requires actually getting into scripting with the python programming language and not just recording. Python is pretty easy, and there are several resources for learning it you can choose from. But if you're not ready for actually writing scripts, then yes you will need a separate script for each side because the script only follows your exact steps.

Technically, if you run your script in "interactive" mode then all dialogs will pop up and you have to approve their settings, it's a slower way to run the script but if you wanted to make minute changes when the script runs anyway, this would probably be easier than creating a separate script for every little change.
https://levifiction.wordpress.com/
badger50
Posts: 21
Joined: Wed Nov 02, 2011 1:35 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit

Re: Help doing a script for drop down image

Post by badger50 »

Thanks big help. Most of the images are 95% different sizes. I take it I should run it in interactive mode
to make the different tweeks?. In what version of psp was script writing introduced. (just curious).
User avatar
hartpaul
Advisor
Posts: 2893
Joined: Tue Mar 20, 2012 3:38 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK P7P55D STRIX B240F GAMING
processor: IntelCore i7 7700 3.60 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 1050
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019,2020
Location: Australia

Re: Help doing a script for drop down image

Post by hartpaul »

From this history list of Paintshop Pro versions it appeasrs that scripts were introduced in version 8.
https://en.wikipedia.org/wiki/List_of_P ... o_releases

Seems that it was an exciting time in those earlier versions as so many changes and new features were introduced.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
Post Reply