[Sticky] -- Scripting Resources
Moderator: Kathy_9
-
- Advisor
- Posts: 5836
- Joined: Thu Oct 02, 2008 1:07 pm
- 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, 9, X, XI, X2, X8,X9, 2018, 2019
- Location: USA
Re: Scripting Resources
Thanks for sharing Rick_R, you're absolutely on point as most of the resources provided do very little good if you don't learn the basics of python.
A full course that teaches you not just python but also the basics of programming is an immensely helpful resource. I'm adding a python training list to the initial post now.
While learning the basics it probably won't matter much if they teach Python 2.x or Python 3.x but It should be noted that PSP uses Python 2.x as its Python Engine.
For anyone who doesn't like the idea of paying to learn Python there are other resources. See top post for some I found online.
A full course that teaches you not just python but also the basics of programming is an immensely helpful resource. I'm adding a python training list to the initial post now.
While learning the basics it probably won't matter much if they teach Python 2.x or Python 3.x but It should be noted that PSP uses Python 2.x as its Python Engine.
For anyone who doesn't like the idea of paying to learn Python there are other resources. See top post for some I found online.
-
- Posts: 37
- Joined: Fri Aug 26, 2016 7:10 am
- 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
- Contact:
Re: Scripting Resources
Hi,
I'm sharing my CB Wallpaper Script Library. It's a collection of scripts for making wallpaper. The scripts are free and have a tiny learning curve. They were started in PaintShop Pro 7, but now have been upgraded to run on PaintShop Pro X5+. It is unknown if the library will work in earlier PSP X versions. I put the script library into a package for public download:
https://spaces.hightail.com/space/t1vmf
I also made a very basic video on how-to use the CB Wallpaper Script Library. You can watch it on YouTube:
https://youtu.be/NpCuly88Sa8
Regards,
Charles Bartley
I'm sharing my CB Wallpaper Script Library. It's a collection of scripts for making wallpaper. The scripts are free and have a tiny learning curve. They were started in PaintShop Pro 7, but now have been upgraded to run on PaintShop Pro X5+. It is unknown if the library will work in earlier PSP X versions. I put the script library into a package for public download:
https://spaces.hightail.com/space/t1vmf
I also made a very basic video on how-to use the CB Wallpaper Script Library. You can watch it on YouTube:
https://youtu.be/NpCuly88Sa8
Regards,
Charles Bartley

Last edited by cosmicDread on Thu Feb 16, 2017 10:34 pm, edited 2 times in total.
So many aliens, so little time.
-
- Advisor
- Posts: 5836
- Joined: Thu Oct 02, 2008 1:07 pm
- 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, 9, X, XI, X2, X8,X9, 2018, 2019
- Location: USA
Re: Scripting Resources
Hello Mr. Bartley,
Thank you for sharing. For best viewing of your scripts I suggest you make a separate topic in this board just dedicated to your scripts. This topic is for resources to learn scripting in PSP so it's not where most people will go to find full scripts.
Thank you for sharing. For best viewing of your scripts I suggest you make a separate topic in this board just dedicated to your scripts. This topic is for resources to learn scripting in PSP so it's not where most people will go to find full scripts.
-
- Posts: 58
- Joined: Mon Mar 31, 2014 3:54 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-6500U CPU 2.50GHz
- ram: 12GB
- Hard_Drive_Capacity: 1TB
- Corel programs: PSP X9, Aftershot Pro 3, VideoStudio X9
Re: Scripting Resources
Can anyone point me to an updated API documentation for X9 or even X8? The last one that I have is for X6. Not able to find on the Corel website.
Thank you,
Chip
Thank you,
Chip
-
- Advisor
- Posts: 5836
- Joined: Thu Oct 02, 2008 1:07 pm
- 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, 9, X, XI, X2, X8,X9, 2018, 2019
- Location: USA
Re: Scripting Resources
I've updated the main post to include the command API for version X8. I don't know of any X9 version.
Technically, if we wanted to spend the time we could use the built in functions in PSP to build our own version of the API documentation. I keep meaning to try but never seem to get around to it.
App.Constants.All() returns objects for all of the constants categories. The functions of each object are Name(), Description(), and Values(). Values returns a list of tuples in the form (name, value, description)
So for example
App.Constants.Boolean contains two values. True and False.
App.Constants.Boolean.true
App.Constants.Boolean.false
We can create the constants very easily like so
We could also do something similar with the return values of GetCommandInfo().
This will be a less complete example because it's way more involved for GetCommandInfo(). You have a list of all commands in the variable App.Commands. Then you just run GetCommandInfo() on every command name to get the information. There's an example of exploring commands....or constants....one of the two inside the Scripting For Script Authors download. It opens a Tkinter GUI with all of the commands/constants on one side and the detailed information on the other.
Sadly this doesn't always work though. In some cases the information built into PSP is incomplete. For example, I ran this in X9 and the ParameterList for "GetCommandInfo" was blank.
Technically, if we wanted to spend the time we could use the built in functions in PSP to build our own version of the API documentation. I keep meaning to try but never seem to get around to it.
App.Constants.All() returns objects for all of the constants categories. The functions of each object are Name(), Description(), and Values(). Values returns a list of tuples in the form (name, value, description)
So for example
App.Constants.Boolean contains two values. True and False.
App.Constants.Boolean.true
App.Constants.Boolean.false
We can create the constants very easily like so
Code: Select all
for constant in App.Constants.All():
filename = "Enumeration_" + constant.Name()+".html"
body = "<html>"
body += "<h2><b> Scripting API</b></h2>"
body += "<table><tbody><tr>"
body += "<th> Script Name: </th>"
body += "<th> </th>"
body += "<th> Description: </th>"
body += "<th> Value: </th> </tr>"
body += "<tr>"
for v in constnat.Values()
body += "<td>v[0]</td>"
body += "<td>v[1]</td>"
body += "<td>v[2]</td>"
body += "</tr></tbody></table></html>"
file = open(filename, 'w')
file.write(body)
file.close()
This will be a less complete example because it's way more involved for GetCommandInfo(). You have a list of all commands in the variable App.Commands. Then you just run GetCommandInfo() on every command name to get the information. There's an example of exploring commands....or constants....one of the two inside the Scripting For Script Authors download. It opens a Tkinter GUI with all of the commands/constants on one side and the detailed information on the other.
Code: Select all
for command in App.Commands:
results = App.Do(Environment, 'GetCommandInfo", {'TargetCmd':command, 'ParamInfo':0} #returns the default parameter information
name = results['Name']
localizedName = results['LocalName']
library = results['Library']
... #code for grabbing all relevant data
...
for param in results['ParameterList']:
.... #code to print parameter info
-
- Posts: 58
- Joined: Mon Mar 31, 2014 3:54 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-6500U CPU 2.50GHz
- ram: 12GB
- Hard_Drive_Capacity: 1TB
- Corel programs: PSP X9, Aftershot Pro 3, VideoStudio X9
Re: Scripting Resources
Thank you Levi..
Fyi... for anyone that is looking for Python training, I stumbled across this free training offered by Microsoft. I have not gone through it, but it looks like it starts from basic (no knowledge).
https://mva.microsoft.com/en-us/trainin ... ython-8360
Chip
Fyi... for anyone that is looking for Python training, I stumbled across this free training offered by Microsoft. I have not gone through it, but it looks like it starts from basic (no knowledge).
https://mva.microsoft.com/en-us/trainin ... ython-8360
Chip
-
- Posts: 13
- Joined: Sat Nov 25, 2017 11:06 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: H-RS880-uATX
- processor: AMD Phenom II X4 810 Processor
- ram: 16 GB
- Video Card: Integrated ATI Radeon HD 4200 graphics
- sound_card: Integrated Realtec ALC888S Audio
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: LG 19LG30 (flat screen TV)
- Corel programs: PSP, Painter Essentials, After Shot, VS
- Location: Owen Sound, ON, Canada
Re: Scripting Resources
Is there updated documentation for PSP 2018 (aka PSP 20.2.0.1)? Or has nothing changed?
Thanks.
Thanks.
-
- Posts: 1562
- Joined: Fri Oct 29, 2010 6:49 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 8Gb
- Corel programs: PSP 8 (JASC) to PSP X9
- Location: Canada
Re: Scripting Resources
You might need to remove Suz' site from the resources as she closed it recently. I will be reuploading some of them on my site as i get them all tested against newer PSP versions.
Cassel
http://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
http://scrapbookcampus.com
for beginner and seasoned scrappers and designers
http://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
http://scrapbookcampus.com
for beginner and seasoned scrappers and designers
-
- Posts: 2622
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Scripting Resources
EDITED WHAT I JUST POSTED! Thanks for updating the resources with regards to Gary Barton's scripts. And I was very pleased to see that you have some scripts posted, something of which I was unaware. I'll definitely be browsing those scripts - some to use and some to learn from! 
And I can see now that the Change Resolution script will be one that will be added to a toolbar. I do lots of collage-type stuff - i.e., where I have a large image with my preferred - and defaut - print resolution used for the background image and a variety of other open images that will be pasted and moved around and resized to taste on the background. Those images come in a variety of PPI settings and all need to be set to my preferred print resolution before pasting so that I can see them as they'll actually look - and print - when pasted and resized as need. This script will save me having to use the Resize dialogue on each one - just click the button. I love saving steps!

And I can see now that the Change Resolution script will be one that will be added to a toolbar. I do lots of collage-type stuff - i.e., where I have a large image with my preferred - and defaut - print resolution used for the background image and a variety of other open images that will be pasted and moved around and resized to taste on the background. Those images come in a variety of PPI settings and all need to be set to my preferred print resolution before pasting so that I can see them as they'll actually look - and print - when pasted and resized as need. This script will save me having to use the Resize dialogue on each one - just click the button. I love saving steps!
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
- Advisor
- Posts: 5836
- Joined: Thu Oct 02, 2008 1:07 pm
- 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, 9, X, XI, X2, X8,X9, 2018, 2019
- Location: USA
Re: Scripting Resources
Glad you like the script, I just finished moving all of the ones I had here on the forums to that site. I hope to also start including some basic tutorials in the future.
-
- Posts: 2622
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Scripting Resources
That latter objective will undoubtably be well visited. As you know, basic tutorials specifically geared to Python for PSP scripting are sorely lacking, and I'm sure there are many PSP users who would welcome the opportunity to do somewhat more with scripts than simply recording - e.g., at least have a better understanding of how to properly make edits to their recorded scripts to personalize the functionality of the script.LeviFiction wrote:Glad you like the script, I just finished moving all of the ones I had here on the forums to that site. I hope to also start including some basic tutorials in the future.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
- Posts: 1
- Joined: Mon Oct 22, 2018 11:22 am
- System_Drive: B
- 32bit or 64bit: 64 Bit
Re: Scripting Resources
These are the resource from where you can learn scripting language easily, but you don't know which is the best one without any research, You will get it from here.
-
- Posts: 1562
- Joined: Fri Oct 29, 2010 6:49 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 8Gb
- Corel programs: PSP 8 (JASC) to PSP X9
- Location: Canada
Re: Scripting Resources
For those who want a Scripting course specifically for PaintShop Pro, there is Suz' course. It is hosted on my site for her. It is not free though but worth the expense if you don't want to go in all directions with Python that might or might not be related to PSP:
http://scrapbookcampus.com/paintshop-pr ... ng-course/
http://scrapbookcampus.com/paintshop-pr ... ng-course/
Cassel
http://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
http://scrapbookcampus.com
for beginner and seasoned scrappers and designers
http://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
http://scrapbookcampus.com
for beginner and seasoned scrappers and designers
-
- Posts: 1
- Joined: Mon Feb 25, 2019 3:48 am
- System_Drive: B
- 32bit or 64bit: 32 Bit
- motherboard: Asus A68HM-K - DDR3 FM2+ Socket AMD Motherboard
- processor: AMD Phenom
- ram: 4GB
- Video Card: GIGABYTE GeForce GT 1030 GV-N1030D5-2GL Low Profi
- sound_card: Behringer U-Phoria UMC22 Audiophile 2x2 USB Audio
- Hard_Drive_Capacity: 1 GB
- Monitor/Display Make & Model: Dell 19.5 inch (49.41 cm) LED Backlit
- Corel programs: CorelDRAW® Graphics Suite 2018
Re: Scripting Resources
Python Tutorial - Suggested by Aditya - http://welookups.com/Python/default.html
-
- Posts: 1
- Joined: Tue Apr 02, 2019 8:30 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
Re: Scripting Resources
Python is super-easy to code and one of the most popular programming languages. I'm reading and learning Python from https://www.techbeamers.com/python-tuto ... p-by-step/.
While learning OOPs, I found that It supports most of the OOPs concepts but not encapsulation. Why?
While learning OOPs, I found that It supports most of the OOPs concepts but not encapsulation. Why?