Animation Path VML Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I'm converting PowerPoint slides to flash, and are confused about the
Animation path coordinates:

For example:
path="M 0.02118 -0.12676 C 0.14965 -0.14319 0.39566 -0.17072 0.40851
-0.21929 C 0.42135 -0.26787 0.23073 -0.39949 0.09861 -0.41846 C -0.03351
-0.43743 -0.30746 -0.38284 -0.38437 -0.33333 C -0.46128 -0.28383 -0.43021
-0.15545 -0.36267 -0.12075 C -0.29514 -0.08605 -0.10729 -0.11034 0.02118
-0.12676 Z "

What does "0.02118" mean? How can I convert this into a pixel position?
Since I scale all shapes, I need to transform these coordinates to new
"scaled" pixel X,Y positions.

Thanks in advance for any information about this issue!

Regards,
Robert Pohl
 
Upper case characters represents absolute values, lower case represents
relative values with respect to the position of the shape.
The motion path is represented by a series of coordinates read in sequence
(4 sets for a bezier curve and 2 sets for a line) Each coordinate is
seperated by a space. The coordinate pair preceding the curve (C) or Line
(L) is the starting point for it representing it. The x and y coordinates
are represented in values betwen 0 to 1. Where 1 represents length equal to
the slide width (x coordinate) or height (y coordinate).

Open ended line (E)
M 0 0 L 0.25 0.0 E
Here: 0 0 represents center of the shape and it is the starting point for
the motion path ( a line) and it will move to the right along a straight
line total length = (0.25*720)=180 points assuming that the width of the
slide is 720 points.

A closed triangle (Z)
M 0 0 L 0.125 0.28773 L -0.125 0.28773 L 0 0 Z

A simple open ended bezier curve
M 0.0 0.1 C 0.1 -0.14 0.39 -0.1 0.4 -0.21 E
 
Thanks to the both of you!
I'll try this, and hopefully it will work out great.

Regards,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top