A Selections rotation point

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
Lambo
Posts: 2
Joined: Sun Jun 16, 2013 5:11 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

A Selections rotation point

Post by Lambo »

I am trying to get to grips with the pen tool and I have a problem I cant get past.
I create on object using the pen tool and then use the pick tool as I want to do a specific rotation buy a certain number of degrees. But I need to move the rotation point. I click on Ctrl and then the rotation point and move it to another location. Now if I want to rotate by hand or 15 degree increment then no problem.
But if I wish to rotate by say 20 degrees then I can only use the Image Free rotate but for some reason it rotates object by the centre of the object and just ignores its new rotation point. I just cant see why?
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

Re: A Selections rotation point

Post by LeviFiction »

While rotating manually, if you look at your status bar you'll see the number of degrees. It's less precise but you can get it to rotate to a specific degree. Otherwise a script is necessary if you want to just enter it.
https://levifiction.wordpress.com/
Lambo
Posts: 2
Joined: Sun Jun 16, 2013 5:11 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit

Re: A Selections rotation point

Post by Lambo »

LeviFiction wrote:While rotating manually, if you look at your status bar you'll see the number of degrees. It's less precise but you can get it to rotate to a specific degree. Otherwise a script is necessary if you want to just enter it.
Thanks this is setting me on a path that might solve my solution. I have recorded the script below.

from PSPApp import *

def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': u'',
'Host': u'PaintShop Pro',
'Host Version': u'14.00 Alpha 00000000.0000000000.00'
}

def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((14,0,0),1)
}
})

# VectorRotate
App.Do( Environment, 'VectorRotate', {
'Angle': 45,
'Pivot': (-209.5,235),
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((14,0,0),1)
}
})


Does anyone know how I can make the "Pivot': (-209.5,235)" command use the selected objects current value.
Also is there a code command like in VBA for an input box so I can directly enter the value for the angle?
trueblue
Moderator
Posts: 1563
Joined: Sat Dec 30, 2006 1:43 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z97M Plus
processor: Intel Core i7-4790 CPU 3.60 GHz
ram: 12GB
Video Card: NVIDIA GeForce GTX 750
sound_card: NVIDIA High Def Audio Realtek High Def
Hard_Drive_Capacity: 1.740GB
Monitor/Display Make & Model: Benq E2420HD 24" wide x 2 monitors
Corel programs: PSPX8-VideoStudio-AfterShot
Location: Australia
Contact:

Re: A Selections rotation point

Post by trueblue »

I'm hoping I'm on track with you here and also to add a little of what Levifiction states which is quite correct.

Draw a triangle on the canvas move the rotation arm by holding the Ctrl key and holding with the left mouse and moving it to the left corner. Select the Pick tool which places a bounding box around the object. It aslo works if you use the Free Rotate on 20 degrees.
~~~~Maureen~~~~
Tutorial Writer for PaintShop Pro

Creative-Designs
Free! PaintShop Pro Tutorials
PaintShop Pro - VideoStudio Pro - AfterShot - CorelDraw - Painter
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

Re: A Selections rotation point

Post by LeviFiction »

I'm going to change my answer slightly.

A script is still possible but it's rather unlikely that it would be useful. Due to some shortcomings in the scripting setup.

But keeping an eye on the status bar should work wonderfully.
https://levifiction.wordpress.com/
Post Reply