My problem is this....
I want to use the layer Properties feature in my scripts....
The item in question is the Inner Glow. You can record that action into your scripts, but when you play back the script,
it doesn't complete that feature or action.
Another words. You can rename your layers, un-group them, visible not visible, you can use the blending options in your script.
But Layer Styles from Layer Properties do not work.
How can I get them to function. If that even possible.
Here is that section from my script.
# Rename Layer to Art Work and add inner glow of white
App.Do( Environment, 'LayerProperties', {
'General': {
'Opacity': None,
'Name': u'Art Work',
'IsVisible': None,
'IsTransparencyLocked': None,
'LinkSet': None,
'UseHighlight': None,
'PaletteHighlightColor': None,
'GroupLink': None,
'BlendMode': None
},
'BlendRanges': None,
'Path': None,
'ArtMediaTexture': None,
'Effects': {
'Enabled': True,
'DropShadow': {
'Enabled': False,
'Color': (0,0,0),
'Size': 0.2,
'Opacity': 0.8,
'OffsetX': 0.5,
'OffsetY': -0.5
},
'InnerGlow': {
'Enabled': True,
'Color': (255,255,255),
'Size': 0.3,
'Opacity': 0.5
},
As you can see it is enable but doesn't work. I'm thinking it is either and over site on the programmers, or it has being disable and not to run in scripts.
I was under the impression that ever action was script-able and re-player-able.
If you have enable the Inner Glow and used it in your image, you can make changes to it by scripting, paint-shop will make the changes for you.
Any answers anybody.
Layer Styles not working in Scripts
Moderator: Kathy_9
-
Teamouse
- Posts: 28
- Joined: Mon Feb 05, 2018 2:40 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: HP Pavilion Note Book
- processor: Intel Core i3 2.20Ghz
- ram: 4GB
- Video Card: Not Known
- sound_card: Realtek
- Hard_Drive_Capacity: 908GB
- Monitor/Display Make & Model: Not Known
- Corel programs: PS Pro X - 2018
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK P7P55D STRIX B240F GAMING
- processor: IntelCore i7 7700 3.60 Ghz
- ram: 8 Gb
- Video Card: Nvidia GeForce GTX 1050
- sound_card: Nvidia High Definition Audio
- Hard_Drive_Capacity: 1000 Gb
- Monitor/Display Make & Model: AOC
- Corel programs: PSP8,X2 to X9,2018,2019,2020
- Location: Australia
Re: Layer Styles not working in Scripts
Interestingly enough if you use interactive mode then it works.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
Teamouse
- Posts: 28
- Joined: Mon Feb 05, 2018 2:40 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: HP Pavilion Note Book
- processor: Intel Core i3 2.20Ghz
- ram: 4GB
- Video Card: Not Known
- sound_card: Realtek
- Hard_Drive_Capacity: 908GB
- Monitor/Display Make & Model: Not Known
- Corel programs: PS Pro X - 2018
Re: Layer Styles not working in Scripts
So I try my script in X8, X9, with the same problem, layer styles don't work!
So I did a work around
So I did a work around
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- 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: Layer Styles not working in Scripts
Could you please tell us what your workaround was? That information would be useful to others so they don't have post their own questions if they run into the same issue.Teamouse wrote:So I try my script in X8, X9, with the same problem, layer styles don't work!
So I did a work around
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
Teamouse
- Posts: 28
- Joined: Mon Feb 05, 2018 2:40 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: HP Pavilion Note Book
- processor: Intel Core i3 2.20Ghz
- ram: 4GB
- Video Card: Not Known
- sound_card: Realtek
- Hard_Drive_Capacity: 908GB
- Monitor/Display Make & Model: Not Known
- Corel programs: PS Pro X - 2018
Re: Layer Styles not working in Scripts
example of Script out put
Looking at the panel to the left of the man you can see it.
STEP: 1
Note this is 2018 version.
Open paintshop pro
Press Alt + F > then “N" (New Image)
Now on the left side of the new image window select “Web"
Next select "Pop-up 2"
Now uncheck transparent > change the color to “Html #371a94" > press O.K.
Color really doesn't matter here. It just for this example.
Just done use white.
And O.K. again.
STEP:2
Menu Bar > Layers > duplicate.
Next press “S”
Change the Selection Type to “Pentagon”
Now draw a Pentagon in the center of you image.
STEP:3
Next press Ctrl + Shift + “i" (Selection > Invert)
Now press Ctrl + “X" (Edit > Cut)
Next press Ctrl + “D" (Selection > Select None)
O.k., go to the layer palette and double chick the “Copy of Background"
And get the Layer Properties Window open.
Now Select > Layer Style tab
Next select > Inner Glow > O.K.
Nice!
Now for the work around. (Start over with a new image)
Repeat steps 1 thru 3.
Step: 4
Go to Layers on the menu bar and then select new raster layer.
Rename to “Layer Style" optional
Say O.K.
Press the “F" key (Flood Fill Tool)
Change your fill color to White, if need be.
Fill this new layer white.
Now press the “A" key.
Step: 5
Next select the “Copy of Background" layer to work with.
Now open the “Selection Tool Option" > Magic Wand
Next click in the upper left corner of your image and select the blank
Area in that layer.
Step:6
Select the top layer to work with. (“Layer Style")
Press Ctl + “X" (edit > cut)
You should see a white pentagon.
Now press Ctl + Shift + “i" (Selection > Invert) kind of tricky key combo here.
Next from the Menu Bar go to
Selection > Modify > Contact
Now check “Preview on image" optional here
Number of pixels, let say 16 for now.
Click O.K.
Next press Ctrl +”X" (edit > Cut)
Step: 7
Now press Ctrl + “D" (Selections > Select None)
Next select the “Copy of Background Layer" to work with again.
( Like in step 5)
Next click in the upper left corner of your image and select the blank
Area in that layer.
Step:8
Press Ctrl + Shift + “i" (Selections > Invert) kind of tricky combo here.
Select the top layer to work with.
Now Press Alt + “A” > “B" > “G" (Gaussian Blur)
Set Radius to “21" (per say)
Next click on O.K.
Press Ctrl + “D"
Adjust the opacity to your need and merge down.
Even tho this isn't the same, this is a work around.
Your need maybe slightly different.
Looking at the panel to the left of the man you can see it.
STEP: 1
Note this is 2018 version.
Open paintshop pro
Press Alt + F > then “N" (New Image)
Now on the left side of the new image window select “Web"
Next select "Pop-up 2"
Now uncheck transparent > change the color to “Html #371a94" > press O.K.
Color really doesn't matter here. It just for this example.
Just done use white.
And O.K. again.
STEP:2
Menu Bar > Layers > duplicate.
Next press “S”
Change the Selection Type to “Pentagon”
Now draw a Pentagon in the center of you image.
STEP:3
Next press Ctrl + Shift + “i" (Selection > Invert)
Now press Ctrl + “X" (Edit > Cut)
Next press Ctrl + “D" (Selection > Select None)
O.k., go to the layer palette and double chick the “Copy of Background"
And get the Layer Properties Window open.
Now Select > Layer Style tab
Next select > Inner Glow > O.K.
Nice!
Now for the work around. (Start over with a new image)
Repeat steps 1 thru 3.
Step: 4
Go to Layers on the menu bar and then select new raster layer.
Rename to “Layer Style" optional
Say O.K.
Press the “F" key (Flood Fill Tool)
Change your fill color to White, if need be.
Fill this new layer white.
Now press the “A" key.
Step: 5
Next select the “Copy of Background" layer to work with.
Now open the “Selection Tool Option" > Magic Wand
Next click in the upper left corner of your image and select the blank
Area in that layer.
Step:6
Select the top layer to work with. (“Layer Style")
Press Ctl + “X" (edit > cut)
You should see a white pentagon.
Now press Ctl + Shift + “i" (Selection > Invert) kind of tricky key combo here.
Next from the Menu Bar go to
Selection > Modify > Contact
Now check “Preview on image" optional here
Number of pixels, let say 16 for now.
Click O.K.
Next press Ctrl +”X" (edit > Cut)
Step: 7
Now press Ctrl + “D" (Selections > Select None)
Next select the “Copy of Background Layer" to work with again.
( Like in step 5)
Next click in the upper left corner of your image and select the blank
Area in that layer.
Step:8
Press Ctrl + Shift + “i" (Selections > Invert) kind of tricky combo here.
Select the top layer to work with.
Now Press Alt + “A” > “B" > “G" (Gaussian Blur)
Set Radius to “21" (per say)
Next click on O.K.
Press Ctrl + “D"
Adjust the opacity to your need and merge down.
Even tho this isn't the same, this is a work around.
Your need maybe slightly different.
