I'm sure you've read, the closest thing to encapsulation python has is to use a double Underscore in front of any methods or properties in the class. This doesn't prevent them from being accessed, only from being accessed directly and by accident. There are ways around this but, PSP will throw a fit claiming that there is no such method or property if you try and access it directly.
Well, I think this post does a decent job of explaining the issue: http://stupidpythonideas.blogspot.com/2 ... ation.html
[Sticky] -- Scripting Resources
Moderator: Kathy_9
-
- Advisor
- Posts: 5834
- 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
-
- Posts: 1
- Joined: Mon Nov 11, 2019 5:52 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- Hard_Drive_Capacity: Rajkot
Re: [Sticky] -- Scripting Resources
I have gathered some resourceful links on different topics.
For Learning Javascript go to https://scotch.io
For Learning PHP go to https://php.net
For Learning Laravel go to https://appdividend.com
For Learning Machine Learning go to https://machinelearningmastery.com
For Learning Javascript go to https://scotch.io
For Learning PHP go to https://php.net
For Learning Laravel go to https://appdividend.com
For Learning Machine Learning go to https://machinelearningmastery.com
-
- Posts: 2
- Joined: Sat Nov 23, 2019 1:06 am
- System_Drive: C
Re: [Sticky] -- Scripting Resources
Howdy! I'm using PSP 2020 and have been searching around for newer scripting APIs and documentation. Are there any more recent resources? Thanks!
-
- Advisor
- Posts: 5834
- 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: [Sticky] -- Scripting Resources
Command API for PSP 2019-2020.
http://help.corel.com/paintshop-pro/v22 ... index.html#
http://help.corel.com/paintshop-pro/v22 ... index.html#
-
- Posts: 93
- Joined: Sun Sep 22, 2019 4:26 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Acer Aspire f5-771G
- processor: i5 - 7200 2.5 GHz
- ram: 8 GB
- Video Card: Intel on board + nVidia GeForce GTX 950M
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: BENQ GW2760HS + Benq T905 as second monitor
- Corel programs: Aftershot Pro 3, Paint Shop Pro 2020
- Location: UK
Re: [Sticky] -- Scripting Resources
Can I suggest that when talking about leaning Python, that the major version is mentioned. recent PSPs uses 2.7x whereas a lot of online resources on Python use 3.x? Whilst there is a lot of similarity between versions 2 and 3, there are pitfalls - e.g. print 'x' rather than print('x'). (I haven't checked the version in 2020 but I recall I had to use a Trusted script to access the version information in 2018.)3) Learn the Basics of Python
Knowledge is recognising that a tomato is a fruit: experience is not putting it in a fruit salad.
-
- Advisor
- Posts: 5834
- 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: [Sticky] -- Scripting Resources
True PSP has gone through Python versions 2.2 up to 2.7 since it originally started using Python as its scripting engine. So it's always the 2.x version of Python we need to learn. And yes 2020 is still on 2.7.5.
I don't know if they're slow to it because of the whole backwards compatibility thing with older scripts, or if it's just because they custom compile their version of Python that they aren't keeping up. The whole custom compile thing is very annoying, it prevents us from using libraries like Numpy and Pillow for faster effects.
I don't know if they're slow to it because of the whole backwards compatibility thing with older scripts, or if it's just because they custom compile their version of Python that they aren't keeping up. The whole custom compile thing is very annoying, it prevents us from using libraries like Numpy and Pillow for faster effects.
-
- Posts: 1
- Joined: Wed Feb 26, 2020 6:54 pm
- System_Drive: F
- motherboard: intel
- processor: i5 7gen
- ram: 12GB
- Hard_Drive_Capacity: 2gb
Re: [Sticky] -- Scripting Resources
I have gathered some resourceful links on different topics.
For Learning Javascript go to http://icetutor.com/
For Learning Javascript go to http://icetutor.com/
Re: [Sticky] -- Scripting Resources
Corel_PaintShop_Pro_Scripting_Guide.pdf
size: 658kB, year 2013
https://www.docdroid.net/IzDH0Zw/corel- ... -guide-pdf
size: 658kB, year 2013
https://www.docdroid.net/IzDH0Zw/corel- ... -guide-pdf