A script adapted from Corel's own Guides- Golden Rule script.
I removed two of the "AddGuide" commands and adapted the other two to be placed at the center of the width and height of the image. The script has comments to help you understand the commands used, parameters, and why it's arranged the way it is. Although to be fair it's all very self evident.
I updated the script to be more compatible with earlier versions of PSP. Although it says psp9 in the file name it can be used all of the way up to X8. It may even potentially be usable down to version 8.
Guides - Quarters script
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
Guides - Quarters script
- Attachments
-
- Guides - Quarters-psp9.zip
- (687 Bytes) Downloaded 273 times
https://levifiction.wordpress.com/
-
LindaSue
- Posts: 515
- Joined: Tue May 24, 2011 1:40 pm
- 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: Guides - Quarters script
I just posted this in the main forum:
It works as intended in PSP9 but not in PSP8. It works in PSP8 but I have to manually turn on the guides either before or after running the script. The script doesn't turn them on like it does in PSP9 and later versions.
It works as intended in PSP9 but not in PSP8. It works in PSP8 but I have to manually turn on the guides either before or after running the script. The script doesn't turn them on like it does in PSP9 and later versions.
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
- 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: Guides - Quarters script
Can you record a script in PSP8 that runs the show and hide guides?
First run the Guides script
Then hit record on your script toolbar.
Next go to View -> Guides to turn them on.
Save the script
Open in Notepad and copy and paste here between two [code] [/code] tags.
Maybe PSP8 has a different syntax for showing and hiding guides than PSP9 and later do.
First run the Guides script
Then hit record on your script toolbar.
Next go to View -> Guides to turn them on.
Save the script
Open in Notepad and copy and paste here between two [code] [/code] tags.
Maybe PSP8 has a different syntax for showing and hiding guides than PSP9 and later do.
https://levifiction.wordpress.com/
-
LindaSue
- Posts: 515
- Joined: Tue May 24, 2011 1:40 pm
- 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: Guides - Quarters script
Here is what I got:
Code: Select all
from JascApp import *
def ScriptProperties():
return {
'Author': u'Linda Genaw',
'Copyright': u'',
'Description': u'',
'Host': u'Paint Shop Pro',
'Host Version': u'8.10'
}
def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
})
# ShowGuides
App.Do( Environment, 'ShowGuides', {
'ShowGuides': App.Constants.ShowCommands.Toggle,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
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
- 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: Guides - Quarters script
Yeah, that's pretty much the exact same command that is in the script.
Though the script uses Hide at the beginning and Show at the end instead of Toggle. Since Toggle just reverses whatever the current state is you don't want to use Toggle.
So I don't know what to tell you. I don't have PSP8 to test with so I have no idea what's wrong. Maybe a really old bug?
Though the script uses Hide at the beginning and Show at the end instead of Toggle. Since Toggle just reverses whatever the current state is you don't want to use Toggle.
So I don't know what to tell you. I don't have PSP8 to test with so I have no idea what's wrong. Maybe a really old bug?
https://levifiction.wordpress.com/
-
LindaSue
- Posts: 515
- Joined: Tue May 24, 2011 1:40 pm
- 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: Guides - Quarters script
Not sure if it will be any more convenient than clicking the "Show/Hide Guides" button on my toolbar but I've edited the script to "toggle". That way, if I run the script and I have Guides turned off it will show them. If I don't see them then I'll just run the script again to make them appear. At least that way I've got at least a 50/50 chance that the guides will turn on. Actually the odds are better than that because I don't normally leave them on.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
