Sg2.9
bended lines in a circle
Recent RSS
bended lines in a circle
From:  Georg
Date:  21. January 2012, 16:27

hi all

iam very new here, have no experience on scripting in illustrator but hopefully at the right place.

i have nice circle with boring straight line, iwant them more smooth and bended like in the 2nd attach, any ideas how to do this?

best, georg

Re: bended lines in a circle
From:  Georg
Date:  21. January 2012, 16:28

thats what i have

Re: bended lines in a circle
From:  Georg
Date:  21. January 2012, 16:28

how i want it

Re: bended lines in a circle
From:  pqbd
Date:  21. January 2012, 23:35

start by trying the quadraticCurveTo() function. Say you have a circle with an anchor point at each location:

sel=document.selectedItems;
sel0=sel[0];
for(i=1;i<sel0.segments.length;i++){
path=new Path();
path.add(sel0.segments[0].point);
path.quadraticCurveTo(sel0.bounds.center,sel0.segments[i].point);
}

Re: bended lines in a circle
From:  Georg
Date:  22. January 2012, 11:51

hi pqbd!

thanks for ur answer! I did not express myself well, i have no experience at scipting at all, sorry for that. so i found this

curveTo(through, to[, parameter])
Parameters:
through: Point
to: Point
parameter: Number — optional

but have no idea how to combine it with ur post. is it possible to give the already existing lines the new look or do i have to draw them all from the beginning?

thanks in advance
best georg

Re: bended lines in a circle
Date:  22. January 2012, 16:24

Hi,
I have actually written a script for exactly that purpose a while ago. They're really straight lines in hyperbolic space. Quite interesting, follow this link for more in-depth information.
I'm away for the time being but I could post the script here in a day or two if you want it. This is a post I've written about it; Arc-ee-type.
I have, however, rewritten the script somewhat so it does not look exactly as in the image below.

Re: bended lines in a circle
From:  Georg
Date:  22. January 2012, 16:57

hey Håkan thx for ur answer and the links!
i know the lord/god/you grafic from a book called data flow,
if u want i can send u s scan of the page!
of course i would be very hapy to try ur script, it looks perfect to me!
hope to hear from u soon
best from berlin
georg

Re: bended lines in a circle
Date:  22. January 2012, 17:17

Hi again,
Glad you seem to find it useful, I will post my script as soon as I can (monday or tuesday). I bought the book Data Flow last spring (very nice book indeed) so there is no need for you to scan it, but thanks for the offer any way.
So you live in Berlin? That's one of my favourite cities!

Best from Skellefteå :)
Håkan

Re: bended lines in a circle
Date:  23. January 2012, 16:50

Hi there,
I have modified my script now so that it is more easy to work with. Just run the script, set the radius and press the Create Disk-button.
Lines can be created in three ways; either by numerical input in the palette, or by clicking with the scriptographer pen tool, or combine manual input with the pen tool.
The pen tool snaps to anchor points on the circle so adding anchor points to the circle can be of help get a regular pattern of lines.
Probably the best way of control is by using the numerical input.
I also included a checkbox to choose wether the arc should be drawn on the inside or the outside of the main circle.

Re: bended lines in a circle
From:  Georg
Date:  24. January 2012, 01:40

thank u so much Håkan! ill post the result here when it is finished
till then good night and check dataflow 2 also :)
best, georg

Re: bended lines in a circle
From:  Georg
Date:  1. February 2012, 20:15

hi Håkan!

do u you think it is possible to give existing straight lines the characteristic of hyperbolic lines?

best, georg

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
RandomTools 21.08.08