Hello,
I've created a script that reads a PSPImage to find all of the guides. I figure being able to do this would be helpful for any number of reasons. But, very specifically, this script uses guides to create cell slices of an image.
But I need some help.
I encountered one image, for reasons I cannot explain, that failed no matter what I tried. Then PSP crashed before I could save it to examine the file. Subsequent tests did not show the same error. Which has me perpelexed. I can't figure it out. So I was wondering if people would be willing to test the script and see if they can find an image that will cause the script to give an error?
Requirements: The script must be installed in the Scripts-Trusted folder as it accesses files on your harddrive, saves images, and access python libraries.
Video Demo of Script: https://drive.google.com/file/d/1yrp41n ... atXYg/view
Script Download: https://drive.google.com/open?id=1jS4iv ... JnCfrXdZVl
HELP - testing script - Guides to slices
Moderator: Kathy_9
-
LeviFiction
- Advisor
- Posts: 6831
- 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-2023
- Location: USA
HELP - testing script - Guides to slices
https://levifiction.wordpress.com/
-
cosmicDread
- Posts: 42
- 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, USA
- Contact:
Re: HELP - testing script - Guides to slices
Hi Levi,
This was my first experience using Guides, so I had to look at the help file to figure out how to use them. The learning curve was short, and was I was able to find three short-comings in your code.
(1):
In the function 'getParts',
line #238 reads,
if len(guides) > 1:
which fails if there is only one guide.
(2): If there are no horizontal guides or no vertical guides, the code fails.
(3): If guides are off the grid or have been removed, then the code fails. It looks like PSP keeps these fields in the data block, but their coordinates are off the grid.
I made a few changes to your code and posted the file as an attachment.
This is a great script. I had no idea one could do such things with PSP.
Hopeful that this helps,
Charles
This was my first experience using Guides, so I had to look at the help file to figure out how to use them. The learning curve was short, and was I was able to find three short-comings in your code.
(1):
In the function 'getParts',
line #238 reads,
if len(guides) > 1:
which fails if there is only one guide.
(2): If there are no horizontal guides or no vertical guides, the code fails.
(3): If guides are off the grid or have been removed, then the code fails. It looks like PSP keeps these fields in the data block, but their coordinates are off the grid.
I made a few changes to your code and posted the file as an attachment.
This is a great script. I had no idea one could do such things with PSP.
Hopeful that this helps,
Charles
When the majority of the people on Earth are wanting the Galactic Federation to show themselves, then they will.
-
LeviFiction
- Advisor
- Posts: 6831
- 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-2023
- Location: USA
Re: HELP - testing script - Guides to slices
Thank you very much, I shall examine your changes carefully.
https://levifiction.wordpress.com/
