x4 copy and paste as new layer irritation

Corel Paint Shop Pro

Moderator: Kathy_9

Kathy_9
Site Admin
Posts: 2896
Joined: Tue Nov 30, 2010 12:44 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 8th Generation Intel Core i7 8700 3 20 GHz
ram: 16GB
Video Card: NVIDIA GeForce RTX 2060 [6 GB GDDR6 dedicated]
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2TB
Monitor/Display Make & Model: HP EliteDisplay E243m 23.8-inch
Corel programs: PSPX2 ~2023; Painter 2018~23
Location: USA
Contact:

Re: x4 copy and paste as new layer irritation

Post by Kathy_9 »

LindaSue - Ctrl+C works fine for me but I have had issues with other keyboard shortcuts that I assigned not always staying assigned. Sometimes I have to reset them several times before they stick. Yes, you should be able to manually assign Ctrl+C through the customize menu but be warned you might have to do it more than once. FWIW, I have reported this but the development team could not duplicate my issue and I can understand why since it seems to be random.

Good Luck,
Kathy
PSPX9 | PSP2020 | PSP2021| PSP2022 | PSP2023 & PhotoMirage installed; PSPX | PSPX2 thru PSP2019 owned but not installed
http://www.flickr.com/photos/37153430@N03/
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

Ctrl+C is working now but I haven't tried closing and reopening X5 to see if it "sticks".
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

LeviFiction wrote:Yes, I apologize. That was my foolish mistake. I forgot that PSP8 still used JascApp and did not use Python's own True and False variables.

I have fixed this and tested it in PSP 8 for you. Just download this script and replace the original with this one and it should work for you.
LeviFiction, PSP8 has an intermittent bug where pasting something as a new layer often pastes the layer as linked. So, what happens when I run your script a second time, pasting a second image into the first one, the two new layers end up linked to each other and I have to unlink them before I can move them around on my image separately. Is there any way to edit the script so that it tells PSP8 not to link the new layers when they're pasted? This isn't a problem in X2 or X4 but I use PSP8 most of the time.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
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: x4 copy and paste as new layer irritation

Post by LeviFiction »

I don't know. I mean, I don't know if I can stop that from happening in the first place or if I will just have to turn off the linking after the fact. I would have to download and install PSP8 to test it out and see what I need to do.
https://levifiction.wordpress.com/
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

LeviFiction wrote:I don't know. I mean, I don't know if I can stop that from happening in the first place or if I will just have to turn off the linking after the fact. I would have to download and install PSP8 to test it out and see what I need to do.
No need to do that. I don't want you to go to any trouble if there's no simple solution.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
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: x4 copy and paste as new layer irritation

Post by LeviFiction »

No trouble at all.

Did some quick checks, the earliest APIs I own are for PSP9, but it doesn't look like there were any changes that would account for that problem. So it's a simple matter just setting the linkset to 0 on the currently selected layer. Very easy. So I won't be installing PSP8 to test this, it should just work as I expect.
Attachments
pasteandmove2.zip
(524 Bytes) Downloaded 129 times
https://levifiction.wordpress.com/
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

Thanks, LeviFiction. Wouldn't you know it but when I went to test your new version of the script this morning, PSP8 isn't linking the layers today.

At first the new script wasn't working. I kept getting an error but I eventually figured out what needed to be fixed. First, I tried changing the first line from:

"from PSPApp import *"

to:

"from JascApp import *"

That didn't fix the problem so I carefully compared the code in your previous script with the new one and found the error:

Line 23 had this:

" 'CreateFromDropData': False,"

and it should have been this:

" 'CreateFromDropData': App.Constants.Boolean.false,"

Now it works great, thanks. I'll try to remember to compare the old and new scripts again when PSP8 start linking the layers again.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
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: x4 copy and paste as new layer irritation

Post by LeviFiction »

That's odd, that one should have already had those things changed. I guess I edited the wrong version of the program. Oops. XD
https://levifiction.wordpress.com/
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

After all this time, I finally ran into the PSP8 layer linking bug tonight. So, I tested the final script you posted, LeviFiction, and it does prevent the linking. In fact, I tested the previous version of the script again afterward, just to make sure it wasn't a fluke, and the layer ended up linked again.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
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: x4 copy and paste as new layer irritation

Post by LeviFiction »

Well....it doesn't really prevent the linking. It just turns off all linking on the layer after the layer is created. :mrgreen: But close enough. Glad it works for you.
https://levifiction.wordpress.com/
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: x4 copy and paste as new layer irritation

Post by LindaSue »

LeviFiction wrote:Well....it doesn't really prevent the linking. It just turns off all linking on the layer after the layer is created. :mrgreen: But close enough. Glad it works for you.
That's all that matters and I've been using your script all the time. I've got it bound on my toolbar but now I need to change it to the new version. I haven't figured out how to remove one bound script and replace it with another in PSP8 yet. It's not as simple to do as in later versions of PSP.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
Post Reply