Align Selections

Moderator: Kathy_9

Post Reply
LeviFiction
Advisor
Posts: 6831
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-2023
Location: USA

Align Selections

Post by LeviFiction »

Script Name: Align Selection
Download Link: https://drive.google.com/open?id=0B8FlF ... 3hUajRMQzQ
Compatability: 9 to X9 supposedly
Requirements: Place in Scripts-Restricted Folder
Description:
PSP has the ability to use the Objects -> Align menu to align masks, raster layers, and vector objects to the canvas. I want to say this started with X4 but it may have been earlier than that. However, as was noted in another topic here on the forums, PSP does not allow you to do the same thing with selections.

Of course, let's be honest, how often do we even need to? But just in case anyone finds this the least bit helpful I went ahead and made some very simple scripts that simulate the Alignment options for selections.

AlignTopSelection - Puts the top of the selection at the top of the canvas keeping its position along the X axis
AlignLeftSelection - Puts the left edge of the selection on the left edge of the canvas keeping its position along the y axis
AlignBottomSelection - Puts the bottom edge of the selection on the bottom edge of the canvas keeping its position along the x-axis
AlignRightSelection - Puts the right edge of the selection on the right edge of the canvas keeping its position along the y-axis
AlignCanvasCenterSelection - Puts the center of the selection at the exact center of the canvas
AlignCanvasHozCenterSelection - Puts the center of the selection at the exact Center of the canvas along the x-axis keeping its position along the y-axis
AlignCanvasVertCenterSelection - Puts the center of the selection at the exact Center of the canvas along the y-axis keeping its position along the x-axis

This script will not align a current selection to another layer or vector object. It only aligns to the canvas for the sake of simplicity.
https://levifiction.wordpress.com/
Post Reply