Page 3 of 3

Re: Scripting Resources

Posted: Tue Apr 02, 2019 3:08 pm
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

Re: [Sticky] -- Scripting Resources

Posted: Mon Nov 11, 2019 5:55 pm
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

Re: [Sticky] -- Scripting Resources

Posted: Sat Nov 23, 2019 1:11 am
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!

Re: [Sticky] -- Scripting Resources

Posted: Sun Nov 24, 2019 12:35 am
by LeviFiction

Re: [Sticky] -- Scripting Resources

Posted: Thu Jan 23, 2020 11:42 am
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.)

Re: [Sticky] -- Scripting Resources

Posted: Thu Jan 23, 2020 5:32 pm
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.

Re: [Sticky] -- Scripting Resources

Posted: Wed Feb 26, 2020 6:56 pm
by petame7457
I have gathered some resourceful links on different topics.

For Learning Javascript go to http://icetutor.com/

Re: [Sticky] -- Scripting Resources

Posted: Thu Jul 23, 2020 2:23 pm
by Radim
Corel_PaintShop_Pro_Scripting_Guide.pdf
size: 658kB, year 2013

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