NEW! PaintShop Pro 2019

Import Photoshop Custom Shapes

Moderator: Kathy_9

Re: Import Photoshop Custom Shapes

Postby sue » Sat Apr 21, 2018 1:08 pm

Thank you very much LeviFiction and JoeB it worked how you said to do it now I can use all the photoshop custom shapes I have saved :D :D :D
sue
 
Posts: 3
Joined: Fri Apr 20, 2018 7:58 am
Location: England
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: Jasc psp9 Corel X2 Corel 2018

Re: Import Photoshop Custom Shapes

Postby Jean-Luc » Thu Mar 21, 2019 7:12 pm

Tested the ImportCustomShapes on my system and it doesn't work on my versions of PSP (X7 to 2019).
I have acces to the Browse window and I can select a folder where CSH files are located.
I can select a CSH file but nothing is displayed in the "Import Custom Shape" window.

I am missing something ?
http://www.350trucs.com
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 1052
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7-4710 HQ 2.50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X8, X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby LeviFiction » Thu Mar 21, 2019 7:16 pm

Are any errors presented? And can you post an example of a CSH that fails?
LeviFiction
Advisor
 
Posts: 5398
Joined: Thu Oct 02, 2008 1:07 pm
Location: USA
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby Jean-Luc » Fri Mar 22, 2019 2:14 pm

As I don't have a PS installed, I asked a friend to send me some CSH files :
wetransfer-fa5f7d.zip
(159.22 KiB) Downloaded 10 times


I found other shapes on internet :
Shapes4FREE_15_clocks.zip
(364.44 KiB) Downloaded 10 times


I have extracted the CSH files but the script seems not to see them. I have no error message. And no freeze. The shapes simply don't show up.
http://www.350trucs.com
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 1052
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7-4710 HQ 2.50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X8, X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby LeviFiction » Fri Mar 22, 2019 2:58 pm

Here is a version of the script that prints a lot more information to the script output palette.

Open the Script OUtput Palette, then try opening an image. Copy the results here.
Attachments
ImportCustomShapes.zip
(4.59 KiB) Downloaded 9 times
LeviFiction
Advisor
 
Posts: 5398
Joined: Thu Oct 02, 2008 1:07 pm
Location: USA
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby Jean-Luc » Sat Mar 23, 2019 12:14 am

The CSH files are placed in the Preset Shapes folder.
I run the script.
The Import Custom Shape window opens.
I click on Browse.
The Select File window opens.
I click on a CSH file.
Nothing happens (I'm waiting for 60 seconds and more).
The Script Output window displays the following :
CSH testing.zip
(68.29 KiB) Downloaded 9 times

If I close the "Select File" and "Import Custom Shape" windows, the output script window says "the script has complete successfully".
http://www.350trucs.com
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 1052
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7-4710 HQ 2.50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X8, X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby LeviFiction » Sat Mar 23, 2019 12:23 am

That image showed me the output window while the browse window was open. Did nothing else get printed to it at all? It's supposed to at least print the filename and path of the file you've chosen.

Try putting the CSH files in your root C:\ drive folder. Does this make any difference?
LeviFiction
Advisor
 
Posts: 5398
Joined: Thu Oct 02, 2008 1:07 pm
Location: USA
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby Jean-Luc » Sat Mar 23, 2019 11:18 am

Nothing is printed nor displayed.
It is the problem... :)

Here the video :
https://www.cjoint.com/c/ICxkrk6fkpY
http://www.350trucs.com
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 1052
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7-4710 HQ 2.50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X8, X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby LeviFiction » Sat Mar 23, 2019 2:57 pm

In that video you haven't finished hitting the Open button yet. It's one of the big annoyances of using the "StartForeignWindow" command inside PSP.

In PSP, when creating your own custom dialogs like this, it's best practice to call "StartForeignWindow" and tell it to focus on the TKinter dialog you created. If you don't, PSP could accidentally cover up the dialog, and you'll lose access to it. And the script won't end unless you close PSP altogether. However, if you do call "StartForeignWindow" then PSP doesn't like it when you open yet another window. And it tries to force the focus to return to the window you told PSP that you're using.

So, you've got to be fast. Clicking multiple tiimes in succession on the open button until it takes.
LeviFiction
Advisor
 
Posts: 5398
Joined: Thu Oct 02, 2008 1:07 pm
Location: USA
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019

Re: Import Photoshop Custom Shapes

Postby Jean-Luc » Sat Mar 23, 2019 6:56 pm

Clicking multiple times does the job !
Thank you !
:D
http://www.350trucs.com
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 1052
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7-4710 HQ 2.50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X8, X9, 2018, 2019

Previous

Return to PSP Scripting

Who is online

Users browsing this forum: No registered users and 2 guests