Script: to add border to layer

Moderator: Kathy_9

User avatar
gbotes
Posts: 104
Joined: Wed Sep 30, 2015 11:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 500Gb
Corel programs: Paint Shop Pro X8, Aftershot 2
Location: South Africa
Contact:

Re: Script to add border to layer

Post by gbotes »

@JoeB, I appreciate all your comments. I view scripts as modular, so I try something and set aside 'cos later on I often find ways to add to it, or to add it to something else. I learn a little more each time I try something, so please keep those comments and feedback coming :)

I've got so much I'd like to learn. I think I will try to learn about more about python coding - do you know which version of Python is used in PSP X8?
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: Script to add border to layer

Post by LeviFiction »

Version 2.7 I believe.
https://levifiction.wordpress.com/
User avatar
gbotes
Posts: 104
Joined: Wed Sep 30, 2015 11:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 500Gb
Corel programs: Paint Shop Pro X8, Aftershot 2
Location: South Africa
Contact:

Re: Script to add border to layer

Post by gbotes »

JoeB wrote:Thanks, but unfortunately that was only a little bit of help, and I hope you don't mind a couple more comments.
@JoeB, my last reply seems to have disappeared from the group - not sure why, but what I said was thanks, and keep the comments and feedback coming - I really appreciate it. It all helps me. I kinda see scripts as modular, so I find that every script I create gets improved, added ot or has something added to it, and I learn a bit more each time. :)

Yeah, i figured I duplicated existing functionality, but I plan to add to that script, so it's just a start, and I use most scripts in batch processing anyway.

I want to learn ore about python coding - do you know which version PSP X8 uses? @LeviFiction, the forum software indicates you've responded but as I mentioned, for some reason I don't see my last post nor your response, so please repost again.

Apologies in advance to the forum if/when the glitch rights itself, as some of this will then have been duplicated.
User avatar
gbotes
Posts: 104
Joined: Wed Sep 30, 2015 11:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 500Gb
Corel programs: Paint Shop Pro X8, Aftershot 2
Location: South Africa
Contact:

Re: Script to add border to layer

Post by gbotes »

Okay, the glitch righted itself when I posted, so now I see everything - thanks LeviFiction, I thought it was 2.7. I'll look for some learning resources online.
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
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: Script to add border to layer

Post by JoeB »

gbotes wrote: ... I kinda see scripts as modular, so I find that every script I create gets improved, added ot or has something added to it, and I learn a bit more each time. :)

Yeah, i figured I duplicated existing functionality, but I plan to add to that script, so it's just a start, and I use most scripts in batch processing anyway.
Now that I understand your workflow when creating scripts I can see why you could have just seen these 2 as a starting point for future development. In that case, I only have one more suggestion, and it's with regard to posting scripts in this sub-forum. Others might disagree and if so should chime in! :-)

It is JMHO, of course, but I think the forum will serve best if actual scripts that are posted are either (a) scripts where the scripts are at least functional for their purpose (even if they could benefit from some refinement or tweaks - but that applies to many great scripts in use!), (b) do not simply duplicate an existing functionality unless they streamline that process - the latter point usually being the purpose behind most scripts), or (c) are scripts where the author has a final goal in mind but is having problems getting to that goal and is looking for input on how to fix and/or move forward with the script from it's present stage to achieve that goal.

The reason for the first two suggestions is simply because some users will see those scripts (such as your second one) as scripts that will simplify their workflow and download it for use when, in fact, the script was only the author's first step in working towards what might be a nebulous concept or goal of the author's at best but that isn't even stated by the author. So the downloading user can end up wondering why he/she spent the time trying it to no useful purpose. I ended up in that position with your second script.

Your first script, however, could easily have been one that needed input about why large inner borders might not be too useful just in case you might not have considered that. As well, had you not posted that one you might not have been aware of the initial problem with the Fill parameters as originally written (it wouldn't fill my test image border), or how to get around the limitation in border size with the existing parameters. So it actually was a script with a purpose and ended up being a learning experience for both of us.

On the other hand, posting scripts in development - my point (c) - with requests for help to further that development is a main goal of a sub-forum like this and are eagerly awaited by people like me who often also learn lots from seeing what is being attempted, even if I can't provide useful help for the specific request of the poster. And, of course, when development is complete then posting the final Release version is definitely hoped for! And, of course, posting already completed scripts that could be of use to even a few users is also expected and desired, as well as links to sites where such a script or scripts might reside that aren't already in the Resources link at the top.

I hope what I've said isn't too confusing or rambling and will be taken in the spirit intended! :-)
Regards,

JoeB
Using PSP 2019 64bit
Post Reply