Script Name: ObjectPositionAndSize, EditObjectPositionAndSize
Download Link: https://drive.google.com/file/d/1J_OuLA_fmJNZznH4EXZcmlsFFNKCZsI6/view?usp=sharing
Compatibility: 9 - 2013 (tested in 2023)
Requirements: Place in Scripts-Trusted Folder
This Zip file includes 2 scripts. One that simply reports the current location and size of any selected layer or object, and the Edit script which lets you specify an exact location and size for any object. The design mimics the Object Properties dialog in PhotoImpact.
Version History:
V2.1 - Fixed 2 aspect ratio bugs, added support for selections in "Edit Selection" mode.
V2.0 - Added the Dialog to scale and move selected items by exact values
V1.0 - Initial Script released
[Script] Object/Selection - Size and Position
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
[Script] Object/Selection - Size and Position
Last edited by LeviFiction on Sat Aug 12, 2023 12:32 am, edited 1 time in total.
https://levifiction.wordpress.com/
-
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: [Script] Object/Selection - Size and Position
Updated to include a second script that provides the edit dialog.
https://levifiction.wordpress.com/
-
Radim
- Posts: 712
- Joined: Mon Nov 01, 2010 5:54 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 4GB
- Monitor/Display Make & Model: 27 inch
Re: [Script] Object/Selection - Size and Position
I tested both scripts and found that width of object is in one script set as 300 and in second read as 299 px.
my test file - https://www.upload.ee/files/15559822/test_file.zip.html
https://i.imgur.com/AaerkSC.png
https://i.imgur.com/aCJKWnM.png
my test file - https://www.upload.ee/files/15559822/test_file.zip.html
https://i.imgur.com/AaerkSC.png
https://i.imgur.com/aCJKWnM.png
-
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: [Script] Object/Selection - Size and Position
There will be rounding errors, and part of that is returned directly by PSP. I eventually just decided to let it go.
https://levifiction.wordpress.com/
-
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: [Script] Object/Selection - Size and Position
UPDATE: Fixed 2 bugs related to aspect ratio. First it was using an aspect ratio of the image not the individual layers or selected items. Second I made a typo in the function to keep the aspect ratio when the height textbox was edited.
Added the ability to resize Selections in the "Edit Selection" mode.
Added the ability to resize Selections in the "Edit Selection" mode.
https://levifiction.wordpress.com/
