Import Photoshop Custom Shapes

Moderator: Kathy_9

sue
Posts: 3
Joined: Fri Apr 20, 2018 7:58 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: Jasc psp9 Corel X2 Corel 2018
Location: England

Re: Import Photoshop Custom Shapes

Post by sue »

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
Jean-Luc
Posts: 1676
Joined: Sat Oct 22, 2011 10:50 pm
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, 2020, 2021
Location: Belgium (French speaking)
Contact:

Re: Import Photoshop Custom Shapes

Post by Jean-Luc »

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 ?
THE PAINTSHOP PRO COOKBOOK
Installed PSP Ultimate: X7, X8, X9, 2018, 2019, 2020 and 2021.
LeviFiction
Advisor
Posts: 5986
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import Photoshop Custom Shapes

Post by LeviFiction »

Are any errors presented? And can you post an example of a CSH that fails?
Jean-Luc
Posts: 1676
Joined: Sat Oct 22, 2011 10:50 pm
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, 2020, 2021
Location: Belgium (French speaking)
Contact:

Re: Import Photoshop Custom Shapes

Post by Jean-Luc »

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 137 times
I found other shapes on internet :
Shapes4FREE_15_clocks.zip
(364.44 KiB) Downloaded 143 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.
THE PAINTSHOP PRO COOKBOOK
Installed PSP Ultimate: X7, X8, X9, 2018, 2019, 2020 and 2021.
LeviFiction
Advisor
Posts: 5986
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import Photoshop Custom Shapes

Post by LeviFiction »

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 143 times
Jean-Luc
Posts: 1676
Joined: Sat Oct 22, 2011 10:50 pm
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, 2020, 2021
Location: Belgium (French speaking)
Contact:

Re: Import Photoshop Custom Shapes

Post by Jean-Luc »

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 130 times
If I close the "Select File" and "Import Custom Shape" windows, the output script window says "the script has complete successfully".
THE PAINTSHOP PRO COOKBOOK
Installed PSP Ultimate: X7, X8, X9, 2018, 2019, 2020 and 2021.
LeviFiction
Advisor
Posts: 5986
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import Photoshop Custom Shapes

Post by LeviFiction »

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?
Jean-Luc
Posts: 1676
Joined: Sat Oct 22, 2011 10:50 pm
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, 2020, 2021
Location: Belgium (French speaking)
Contact:

Re: Import Photoshop Custom Shapes

Post by Jean-Luc »

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

Here the video :
https://www.cjoint.com/c/ICxkrk6fkpY
THE PAINTSHOP PRO COOKBOOK
Installed PSP Ultimate: X7, X8, X9, 2018, 2019, 2020 and 2021.
LeviFiction
Advisor
Posts: 5986
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import Photoshop Custom Shapes

Post by LeviFiction »

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.
Jean-Luc
Posts: 1676
Joined: Sat Oct 22, 2011 10:50 pm
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, 2020, 2021
Location: Belgium (French speaking)
Contact:

Re: Import Photoshop Custom Shapes

Post by Jean-Luc »

Clicking multiple times does the job !
Thank you !
:D
THE PAINTSHOP PRO COOKBOOK
Installed PSP Ultimate: X7, X8, X9, 2018, 2019, 2020 and 2021.
Wykkyd
Posts: 18
Joined: Thu Jul 02, 2020 11:26 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7 9750H 2_6 GHz 6 core
ram: 16GB
Video Card: NVIDIA GeForce RTX 2070 Graphics 8 GB GDDR6 ded
Hard_Drive_Capacity: 1 TB
Monitor/Display Make & Model: 65" LG TV - HDMI
Corel programs: PSP 2021, Video Suite 2020, Aftershot
Location: North Carolina

Re: Import Photoshop Custom Shapes

Post by Wykkyd »

LeviFiction wrote:
Sat Mar 23, 2019 2:57 pm

So, you've got to be fast. Clicking multiple tiimes in succession on the open button until it takes.
Hey Levi! Thanks for your great work! I have just used your script here successfully in PSP 2021. The only recommendation I would have is that after the importation is complete, the script says it's done, complete, finished or whatever. After it completes now, it's just the same window sitting there where you selected the files to import. I just closed the window with the X in the top right corner after it "appeared" that the process was finished and checked and the shapes were all imported.

I did have to do the multi-open button-presses also.

This is an awesome script! It's very useful for me as I rely on shapes for the things I create. Saves so much time having the base shapes already done! Thanks again!!

~Wykkyd
Post Reply