Is it possible to add points without changing the shape?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
paulcopeland
Posts: 95
Joined: Tue Mar 03, 2009 2:04 pm

Is it possible to add points without changing the shape?

Post by paulcopeland »

G'day from Australia.

Is it possible to add points to a shape without changing the shape itself.

Here is an example with a circle.

Image

I think it would be great to have the option for adding points that won'c change the shape, if it is not already there.

What do you reckon?

seeya.

Paul.
Get my free piano sheet music here http://www.scoreexchange.com/profiles/pianoedition
User avatar
KenW
Posts: 129
Joined: Tue Jul 17, 2007 8:08 pm
Location: Virginia, USA
Contact:

Post by KenW »

Go to Scripts Menu
Draw - then
Split curve :)
paulcopeland
Posts: 95
Joined: Tue Mar 03, 2009 2:04 pm

Post by paulcopeland »

Hi Ken.

Thank you for the suggestion.

Unfortunately when I run the scripts menu the point is added but the shape changes. Is it possible to add the point without changing the shape?

Paul.
KenW wrote:Go to Scripts Menu
Draw - then
Split curve :)
Get my free piano sheet music here http://www.scoreexchange.com/profiles/pianoedition
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

It is funny, my second post was about the same question! and it was in 2006!
You cannot. Curve shape depends on neighbor points and its relative positions. It is the way Moho (Anime Studio) construct its curves. The tangent direction of the point is unique (only one tangent direction and the same for each side of the curve around the point) and defined by the neighbor points positions. Only the tangent size (defined by the curvature channel) can be modified. With the curvature you can adapt a little the shape of the curve but not drastically.

It is in this way to allow easy modification of the points under the influence of the bone (skeleton).
-G
User avatar
synthsin75
Posts: 10278
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

Select all four points of your circle and run splitcurve. That way they are added at the same time.
paulcopeland
Posts: 95
Joined: Tue Mar 03, 2009 2:04 pm

Post by paulcopeland »

Hi Genete.

Great minds think alike eh :lol:

I wonder if it will every be possible to do this. Perhaps in a newer version.

Bye for now.

Paul.

Genete wrote:It is funny, my second post was about the same question! and it was in 2006!
You cannot. Curve shape depends on neighbor points and its relative positions. It is the way Moho (Anime Studio) construct its curves. The tangent direction of the point is unique (only one tangent direction and the same for each side of the curve around the point) and defined by the neighbor points positions. Only the tangent size (defined by the curvature channel) can be modified. With the curvature you can adapt a little the shape of the curve but not drastically.

It is in this way to allow easy modification of the points under the influence of the bone (skeleton).
-G
Get my free piano sheet music here http://www.scoreexchange.com/profiles/pianoedition
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post by mkelley »

Yes, Wes is right.

Split curve works just fine as long as all the points of the circle are selected. Or you can do this -- just create the circle (which by default ends up with all points selected) and before you turn it into a shape run the split curve script and then do a create shape. Voila! You end up with a perfect circle with tons of vertices.

In general Genete's information about how AS works is correct, but the split curve script takes this into account and will preserve the correct relationships among all curves and not alter the shape as long as you've selected it all.

(BTW, you can get some nice geometric shapes this way by splitting a circle into many vertices and then selected, say, every other one and doing a scale. Or select every fourth one and rotate. Kind of like a spirograph).
User avatar
KenW
Posts: 129
Joined: Tue Jul 17, 2007 8:08 pm
Location: Virginia, USA
Contact:

Post by KenW »

Thanks Synth and MKelly, i forgot to say to select all points first before using the script. 8)
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

(BTW, you can get some nice geometric shapes this way by splitting a circle into many vertices and then selected, say, every other one and doing a scale. Or select every fourth one and rotate. Kind of like a spirograph).
Like this?
http://www.youtube.com/watch?v=UXRR6Vxipec
-G
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post by mkelley »

Yup -- I note you used some scripting for that. I'm fairly sure the script does the same thing at some point as split curve (namely, divide up a geometric shape with more verts for manipulation).

Now -- as to why the add point tool can't do this I'm not sure. Graphics programming is not my strong point, but I suspect you could take the normal add points tool and combine it with the logic in split curves and make it behave the same way (i.e. if you add a point it maintains the curve). The only problem I see is "knowing" what points are at either end of the addition. Split curve doesn't have to figure this out I guess, because it works on selected points (although it would still have to know the order of the points. Or maybe not).

If I wasn't in the middle of twelve things I'd be willing to give this a try (seems like it would be a logical thing for the add points to do anyway, unless the math involved will slow things down too much or unless there just isn't any way of finding those two ends).
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

I note you used some scripting for that
I used the curvature tool (from Fazek) that allows to input the curvature value in a numerical field. Great tool yeah!.
-G
Post Reply