[Sticky] -- Scripting Resources

Moderator: Kathy_9

LeviFiction
Advisor
Posts: 5775
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Scripting Resources

Post by LeviFiction »

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
rushabh92
Posts: 1
Joined: Mon Nov 11, 2019 5:52 pm
operating_system: Mac
System_Drive: C
32bit or 64bit: 64 Bit
Hard_Drive_Capacity: Rajkot

Re: [Sticky] -- Scripting Resources

Post by rushabh92 »

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
BloodyNose
Posts: 2
Joined: Sat Nov 23, 2019 1:06 am
operating_system: Windows 10
System_Drive: C

Re: [Sticky] -- Scripting Resources

Post by BloodyNose »

Howdy! I'm using PSP 2020 and have been searching around for newer scripting APIs and documentation. Are there any more recent resources? Thanks!
LeviFiction
Advisor
Posts: 5775
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: [Sticky] -- Scripting Resources

Post by LeviFiction »

Andy2011
Posts: 92
Joined: Sun Sep 22, 2019 4:26 pm
operating_system: Windows 10
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

Post by Andy2011 »

3) Learn the Basics of Python
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.)
Knowledge is recognising that a tomato is a fruit: experience is not putting it in a fruit salad.
LeviFiction
Advisor
Posts: 5775
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: [Sticky] -- Scripting Resources

Post by LeviFiction »

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.
petame7457
Posts: 1
Joined: Wed Feb 26, 2020 6:54 pm
operating_system: Windows 10
System_Drive: F
motherboard: intel
processor: i5 7gen
ram: 12GB
Hard_Drive_Capacity: 2gb

Re: [Sticky] -- Scripting Resources

Post by petame7457 »

I have gathered some resourceful links on different topics.

For Learning Javascript go to http://icetutor.com/
Radim
Posts: 552
Joined: Mon Nov 01, 2010 5:54 pm
operating_system: Windows 8
System_Drive: C
32bit or 64bit: 32 Bit
Contact:

Re: [Sticky] -- Scripting Resources

Post by Radim »

Corel_PaintShop_Pro_Scripting_Guide.pdf
size: 658kB, year 2013

https://www.docdroid.net/IzDH0Zw/corel- ... -guide-pdf
Post Reply