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
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
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);
}
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
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.
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
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
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.