Vector Spiral

Moderator: Kathy_9

LeviFiction
Advisor
Posts: 6574
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

Vector Spiral

Post by LeviFiction »

Name: Vector Spiral
Compatability: Should work all the way to v9, but I've only tested it in X9.
Requirements: Scripts-Trusted folder.
Download Link: https://drive.google.com/open?id=0B8FlF ... G8xVDBCekE
Video: https://drive.google.com/file/d/0B8FlFL ... NRUVE/view

Description
So someone posted a link to a wonderful script that used your paintbrush to create a simple spiral on an image. I've often asked Corel to make a spiral tool for vectors and that script made me decide to stop waiting and do it myself. I used and converted the code found here: http://svgdiscovery.com/E3/E3.htm

Other than what was necessary for the conversion, and the UI, none of the important code is my own.

So here it is, a script for creating vector spirals. It uses Tkinter and math modules so it does need to go into your Scripts-Trusted folder.

The TKinter interface opens up a small dialog box where you can edit the settings of the spiral before accepting the changes. All changes to the spiral are updated automatically on the canvas.

You can download it from here: https://drive.google.com/open?id=0B8FlF ... G8xVDBCekE
JoeB
Posts: 2760
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
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: Vector Spiral

Post by JoeB »

Thanks for doing it, Levi. Was kind of hoping you might have some free time this weekend to fiddle with this. :-)
Regards,

JoeB
Using PSP 2019 64bit
JudyM
Posts: 44
Joined: Fri Oct 04, 2013 10:52 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 3.40 gigahertz Intel Core i5-4670
ram: 2048 MB
Hard_Drive_Capacity: 999.36 GB
Monitor/Display Make & Model: HP L1706
Corel programs: PSP 9,X, X4 - 2018
Location: Australia

Re: Vector Spiral

Post by JudyM »

Many thanks Levi!
I'm having fun with this :D
Thanks also for the video, explains it well
You area star!
Judy
Cassel
Posts: 1577
Joined: Fri Oct 29, 2010 6:49 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16Gb
Corel programs: PSP 8 (JASC) to PSP 2022
Location: Canada

Re: Vector Spiral

Post by Cassel »

Wonderful!!!
I wish i could have done it but that is waaaaaaaaaaaay over might capabilities!
Cassel
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes

https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
Kathy_9
Site Admin
Posts: 2739
Joined: Tue Nov 30, 2010 12:44 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 8th Generation Intel Core i7 8700 3 20 GHz
ram: 16GB
Video Card: NVIDIA GeForce RTX 2060 [6 GB GDDR6 dedicated]
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2TB
Monitor/Display Make & Model: HP EliteDisplay E243m 23.8-inch
Corel programs: PSPX2 ~2023; Painter 2018~23
Location: USA

Re: Vector Spiral

Post by Kathy_9 »

Nice!! Thanks you.
PSPX9 | PSP2020 | PSP2021| PSP2022 | PSP2023 & PhotoMirage installed; PSPX | PSPX2 thru PSP2019 owned but not installed
http://www.flickr.com/photos/37153430@N03/
csh2000
Posts: 59
Joined: Mon Mar 31, 2014 3:54 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7-6500U CPU 2.50GHz
ram: 12GB
Hard_Drive_Capacity: 1TB
Corel programs: PSP X9, Aftershot Pro 3, VideoStudio X9

Re: Vector Spiral

Post by csh2000 »

Levi,

Thanks for sharing, this is brilliant and helps me with a script that I've been working on.

Question - Is there a reason that you restrict the revolutions to 10?
elif revs > 10:
revs = 10

Chip
LeviFiction
Advisor
Posts: 6574
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: Vector Spiral

Post by LeviFiction »

Not really, it's just the limit that was given to code example I used. So I kept it.