Center guides?
Moderator: Kathy_9
Center guides?
Is there a way to automatically center the vertical and horizontal guides?
-
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: Center guides?
I do not believe there is any shortcut key or setting that allows you to snap a guide to a certain place. But you can use scripts to create guides according to very simple rules.
There are already two scripts that add guides inside of PSP. Guides - Rule of Thirds and Guides - Golden Rule.
Obviously these are not what you want but they show it can be done.
I am uploading a script that will automatically set two guides directly in the center of the image both horizontally and vertically. The forums don't allow us to upload the scripts directly so I've placed it inside a zip folder.
To use it, open the zip folder and copy the PSPScript file into your scripts-restricted folder.
If you don't know where your scripts-restricted folder is you can find it inside of PSP by going to File -> Preferences -> File locations.
Select "Scripts-restricted" from the list on the left. And on the right you'll see a list of folders where PSP looks for restricted scripts.
There are already two scripts that add guides inside of PSP. Guides - Rule of Thirds and Guides - Golden Rule.
Obviously these are not what you want but they show it can be done.
I am uploading a script that will automatically set two guides directly in the center of the image both horizontally and vertically. The forums don't allow us to upload the scripts directly so I've placed it inside a zip folder.
To use it, open the zip folder and copy the PSPScript file into your scripts-restricted folder.
If you don't know where your scripts-restricted folder is you can find it inside of PSP by going to File -> Preferences -> File locations.
Select "Scripts-restricted" from the list on the left. And on the right you'll see a list of folders where PSP looks for restricted scripts.
- Attachments
-
- Guides - Quarters.zip
- (691 Bytes) Downloaded 154 times
https://levifiction.wordpress.com/
Re: Center guides?
Awesome! Thank you!
-
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: Center guides?
Could I suggest that you post this script in the Scripting sub-forum?LeviFiction wrote:I do not believe there is any shortcut key or setting that allows you to snap a guide to a certain place. But you can use scripts to create guides according to very simple rules.
There are already two scripts that add guides inside of PSP. Guides - Rule of Thirds and Guides - Golden Rule.
Obviously these are not what you want but they show it can be done.
I am uploading a script that will automatically set two guides directly in the center of the image both horizontally and vertically. The forums don't allow us to upload the scripts directly so I've placed it inside a zip folder.
To use it, open the zip folder and copy the PSPScript file into your scripts-restricted folder.
If you don't know where your scripts-restricted folder is you can find it inside of PSP by going to File -> Preferences -> File locations.
Select "Scripts-restricted" from the list on the left. And on the right you'll see a list of folders where PSP looks for restricted scripts.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
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: Center guides?
LeviFiction, would it be possible to edit the script so that it will run in PSP8? I use your "PasteAndMover" script all the time and this one would be handy too.
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: Center guides?
I don't recall a paste and mover script.
I just adapted it from Corel's own Guides - Golden Rule script which has a default host of version 9.
To work in older versions the script would have to be edited to use JascUtils and JascApp instead of PSPUtils and PSPApp.
The default host number would have to be changed from 9 to 8 in all commands. And change all instances of "True" to 1 and "False" to 0.
I submitted an updated version with all of these changes into the PSP Scripting forum.
I just adapted it from Corel's own Guides - Golden Rule script which has a default host of version 9.
To work in older versions the script would have to be edited to use JascUtils and JascApp instead of PSPUtils and PSPApp.
The default host number would have to be changed from 9 to 8 in all commands. And change all instances of "True" to 1 and "False" to 0.
I submitted an updated version with all of these changes into the PSP Scripting forum.
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: Center guides?
You created the Paste & Mover script for me a long time ago. It auto pastes as a new layer then activates the Move tool. The actual purpose of the script was to prevent PSP8 from linking layers which is a bug in PSP8 that appears at random when new layers are pasted into an image.
I just tested your updated "Guides - Quarters.PspScript" in PSP8 and PSP9. It works as intended in PSP9 but not in PSP8. It works now 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.
I just tested your updated "Guides - Quarters.PspScript" in PSP8 and PSP9. It works as intended in PSP9 but not in PSP8. It works now 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
-
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: Center guides?
The Paste & Move script was actually written by Gary Barton in 2003. There is a link to his Pixelnook script site in the first sticky post in the Scripting sub-forum, which has links to various scripting resources. The direct link to Pixelnook is here:LindaSue wrote:You created the Paste & Mover script for me a long time ago. It auto pastes as a new layer then activates the Move tool.
http://pixelnook.home.comcast.net/~pixelnook/
Paste & Move is bound to a toolbar in my PSP and used all the time - a very useful script. Another favorite but used much less often is Barton's Pause Script, which can be added to scripts to allow you to pause the script at various steps to do something that is difficult or impossible to achieve within a script and then run the main script again.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
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: Center guides?
Well, I don't know where LeviFiction originally got the basic script but he added this bit of code to it to prevent PSP8 from linking the layers:
Code: Select all
App.Do( Environment, 'LayerProperties',{'General':{'LinkSet':0},'GeneralSettings':{'ExecutionMode':App.Constants.ExecutionMode.Silent}})Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
