point count - interpolation

Have you come up with a good Moho trick? Need help solving an animation problem? Come on in.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

point count - interpolation

Post by arfa »

Experimenting with switch interpolation and came up against the point-count problem. There needs to be the same number of points on each layer. How to know how many points on each respective layer?

I went digging into the *.anme file and found that the information is there. Quite easy to find by searching for the layer name - then down, not so many lines, on a line of its own "points".

So, ever to fiddle, I wrote a simple PHP interface that does the digging for me. Just type in the file and layer names and - click.

Download a copy...
http://www.buddhamind.info/as/dload.php ... points.php

go well - arfa
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Great idea for a php script but it might not work for switch layers.

Yes the number of points must match but they also have to be in the same "order" and "relative" location. You could have two identical shapes but if the points are not drawn in the same order then they won't "match" and you will get points swapping places or moving around oddly during switch layer interpolation.

Just a heads up.

-vern
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

good head

Post by arfa »

And a good head up it was indeed.

I tried various combinations and it seems that interpolation is limited to a layer copy. Oh well, nice try arfa but - no banana (this time :)

I'll be back - arfa
User avatar
slowtiger
Posts: 6244
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

For switch layers I found it best practice to built one master layer with all elements in it, then duplicate this and modify each copy by just shifting points, without erasing any.
Post Reply